[21:12:08]Счет N : (1)281156 ИНН: 00112200510239 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 2 Товар: 2710124130 Аи-92-К-5 14.840 * 67.40 = 1000.22 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 332 09.07.2024 21:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27290 ФПД: 8027468597197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211206&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27290&fm=8027468597197&tin=00112200510239®Number=0000000000151136&sum=100000 [21:12:08]StoreToDocumentArchive [21:12:08]shift 114 fd 27290 [21:12:08]save to /storage/0114/doc_00027290 [21:12:08]save last doc name /storage/0114/doc_00027290 to /storage/kkm_last_doc_name [21:12:08]save OK [21:12:08]Clear old archive folders... [21:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:12:08]tlvbuf is 005A0D90 [21:12:08]SAM_PROTO_ClearQueue [21:12:08]wFMCommunicate request_size=4 [21:12:08]MH_SAM_APDU [21:12:08]CAPDU: 80 09 00 00 [21:12:08]Write to MH i2c: E2 08 00 00 07 80 09 00 00 00 00 00 00 79 [21:12:08]Write i2c OK [21:12:08]MH_I2C_Read... [21:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 00 07 00 90 00 7B [21:12:09]RAPDU: 90 00 [21:12:09]wFMCommunicate OK [21:12:09]SAM_PROTO_ClearQueue done [21:12:09]KKMCreateOFDPacket [21:12:09]OFDProtocolAddRootSTLVToBuf [21:12:09]FM_MakeSignedData [21:12:09]FM_MakeSignedData [21:12:09]SAM_PROTO_SignData [21:12:09]wFMCommunicate request_size=4 [21:12:09]MH_SAM_APDU [21:12:09]CAPDU: 80 0D 01 02 [21:12:09]Write to MH i2c: E2 08 00 01 07 80 0D 01 02 00 00 00 00 81 [21:12:09]Write i2c OK [21:12:09]MH_I2C_Read... [21:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 01 07 00 90 00 7C [21:12:09]RAPDU: 90 00 [21:12:09]wFMCommunicate OK [21:12:09]wFMCommunicate request_size=255 [21:12:09]MH_SAM_APDU [21:12: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 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4C 01 00 00 F4 03 04 00 A6 A7 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9A 6A 00 00 35 04 06 00 07 [21:12:09]Write to MH i2c: E2 02 01 02 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4C 01 00 00 F4 03 04 00 A6 A7 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9A 6A 00 00 35 04 06 00 07 00 00 DA [21:12:10]Write i2c OK [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: E2 [21:12:10]MH_I2C_Read... [21:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:10]Read from MH i2c: E2 03 00 [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: E2 03 00 02 07 00 90 00 7D [21:12:10]RAPDU: 90 00 [21:12:10]wFMCommunicate OK [21:12:10]wFMCommunicate request_size=10 [21:12:10]MH_SAM_APDU [21:12:10]CAPDU: 80 0D 02 02 05 4D 0A 6A 07 CD [21:12:10]Write to MH i2c: E2 0D 00 03 07 80 0D 02 02 05 00 4D 0A 6A 07 CD 00 00 23 [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 03 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [21:12:11]RAPDU: 90 00 [21:12:11]wFMCommunicate OK [21:12:11]wFMCommunicate request_size=4 [21:12:11]MH_SAM_APDU [21:12:11]CAPDU: 80 0D 03 02 [21:12:11]Write to MH i2c: E2 08 00 04 07 80 0D 03 02 00 00 00 00 86 [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 0B 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 0B 00 04 07 00 B1 C1 F6 1B 48 22 F7 CD 90 00 38 [21:12:11]RAPDU: B1 C1 F6 1B 48 22 F7 CD 90 00 [21:12:11]wFMCommunicate OK [21:12:11]SAM_PROTO_SignData done [21:12:11]FM_MakeSignedData done [21:12:11]CreateOFDProtocolMessage [21:12:11]wFMCommunicate request_size=4 [21:12:11]MH_SAM_APDU [21:12:11]CAPDU: 80 11 00 00 [21:12:11]Write to MH i2c: E2 08 00 05 07 80 11 00 00 00 00 00 00 86 [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 17 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 17 00 05 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 DD [21:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:12:11]wFMCommunicate OK [21:12:11]CreateOFDProtocolMessage done [21:12:11]OFDSenderStorePacket 27290 [21:12:11]StoreOFDPacket docnum=27290 [21:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 FC 76 07 01 DC 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 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4C 01 00 00 F4 03 04 00 A6 A7 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9A 6A 00 00 35 04 06 00 07 4D 0A 6A 07 CD B1 C1 F6 1B 48 22 F7 CD [21:12:11]CheckFolder [21:12:11]dirname=/storage/ofd_packets [21:12:11]CheckFolder done [21:12:11]ProducePacketName [21:12:11]name=ofd_packets/00027290 [21:12:11]NVStorageSaveData ofd_packets/00027290 [21:12:11]File name is /storage/ofd_packets/00027290 [21:12:11]Write 301 bytes [21:12:11]NVStorageSaveData done [21:12:11]OFDSenderStorePacket done [21:12:11]KKMCreateOFDPacket done [21:12:11]NVStorageSaveData kkm_last_timestamp [21:12:11]File name is /storage/kkm_last_timestamp [21:12:11]Write 4 bytes [21:12:11]NVStorageSaveData done [21:12:11]ExternCall_PrintAddStr [21:12:11]wPrintStart [21:12:11]Write to MH i2c: 01 00 00 06 07 0D [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 07 00 [21:12:11]MH_I2C_Read... [21:12:11]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:12:11]ProducePacketName [21:12:11]name=ofd_packets/00027177 [21:12:11]OFD Sender: To server: pG, [21:12:11]CommunicateWithHost lk.salyk.kg:30040 [21:12:11]ConnectInit lk.salyk.kg [21:12:11]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [21:12:11]RasterBufferAndPrint [21:12:11]line Счет N : (1)281156 [21:12:11]line ИНН: 00112200510239 [21:12:11]line Контрольно-Кассовый Чек [21:12:11]line ПРОДАЖА [21:12:11]line ТРК (МРК, ГНК) : 2 [21:12:11]line Товар: 2710124130 [21:12:11]line Аи-92-К-5 [21:12:11]line 14.840 * 67.40 [21:12:11]line = 1000.22 [21:12:11]line НДС 12% НСП 1% [21:12:11]line > о реализуемом товаре [21:12:11]line ОКРУГЛЕНИЕ: -0.22 [21:12:11]line ИТОГО: 1000.00 [21:12:11]line Внесено: 1000.00 [21:12:11]line СДАЧА: 0.00 [21:12:11]line НСП 1% : 8.85 [21:12:11]line НДС 12% : 106.22 [21:12:11]line Наличными: 1000.00 [21:12:11]line Безнал.: 0.00 [21:12:11]line Место: АЗС № 50 "Bishkek Petroleum" [21:12:11]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:12:11]line СНО: Общий режим [21:12:11]line Чек 332 09.07.2024 21:12 [21:12:11]line Смена: 114 ФФД: 1.0 [21:12:11]line ЗНМ: 0300000229 [21:12:11]line РНМ: 0000000000151136 [21:12:11]line Версия ККМ: v1.0 [21:12:11]line ФМ: 0000000000959418 [21:12:11]line ФД: 27290 [21:12:11]line ФПД: 8027468597197 [21:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211206&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27290&fm=8027468597197&tin=00112200510239®Number=0000000000151136&sum=100000 [21:12:11]written 0, free lines is 4095 [21:12:12]Write to MH i2c: 01 00 00 31 07 38 [21:12:12]Write i2c OK [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: 01 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: 01 07 00 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 B7 0C 02 [21:12:12]RasterBufferAndPrint [21:12:12]line [21:12:12]line [21:12:12]line [21:12:12]line [21:12:12]line [21:12:12]written 0, free lines is 3378 [21:12:12]MH_Cut [21:12:12]Write to MH i2c: D1 01 00 38 07 01 11 [21:12:12]Write i2c OK [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: D1 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: D1 01 00 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: D1 01 00 38 07 00 10 [21:12:12]Write to MH i2c: 01 00 00 39 07 40 [21:12:12]Write i2c OK [21:12:12]MH_I2C_Read... [21:12:13]*** Cut start [21:12:13]*** Partial cut [21:12:13]*** CUTSNS_PIN = 1 [21:12:13]*** CUTSNS_PIN = 0 [21:12:13]*** Brake cut motor [21:12:13]Read from MH i2c: 01 [21:12:13]MH_I2C_Read... [21:12:13]*** Stop cut motor [21:12:13]*** Cut end [21:12:13]Read from MH i2c: 01 07 00 [21:12:13]MH_I2C_Read... [21:12:13]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 FF 0F 55 [21:12:13]process_action close_receipt done [21:12:13]requested_data is exist [21:12:13]produce_requested_data [21:12:13]requested_item fm.sn is exist - process it [21:12:13]wFMCommunicate request_size=4 [21:12:13]MH_SAM_APDU [21:12:13]CAPDU: 80 11 00 00 [21:12:13]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 17 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 12 [21:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:12:14]wFMCommunicate OK [21:12:14]requested_item fd.num is exist - process it [21:12:14]SAM_PROTO_GetFieldsCounters [21:12:14]wFMCommunicate request_size=4 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 13 00 00 [21:12:14]Write to MH i2c: E2 08 00 3B 07 80 13 00 00 00 00 00 00 BE [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 62 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 62 00 3B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9A 6A 00 00 0E 04 04 00 72 00 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 38 [21:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9A 6A 00 00 0E 04 04 00 72 00 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 [21:12:15]wFMCommunicate OK [21:12:15]SAM_PROTO_GetFieldsCounters done [21:12:15]requested_item shift.num is exist - process it [21:12:15]requested_item shift.opened is exist - process it [21:12:15]req_shift_opened [21:12:15]FM_GetShiftState [21:12:15]SAM_PROTO_GetShiftState [21:12:15]wFMCommunicate request_size=4 [21:12:15]MH_SAM_APDU [21:12:15]CAPDU: 80 13 01 00 [21:12:15]Write to MH i2c: E2 08 00 3C 07 80 13 01 00 00 00 00 00 C0 [21:12:15]Write i2c OK [21:12:15]MH_I2C_Read... [21:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:15]Read from MH i2c: E2 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: E2 0E 00 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: E2 0E 00 3C 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 CE [21:12:15]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:12:15]wFMCommunicate OK [21:12:15]SAM_PROTO_GetShiftState done [21:12:15]FM_GetShiftState done [21:12:15]req_shift_opened done [21:12:15]requested_item shift.open_date is exist - process it [21:12:15]req_shift_open_date [21:12:15]req_shift_open_date done [21:12:15]produce_requested_data done [21:12:15]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27290,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:12:15]process_action_free close_receipt [21:12:15]json_value_free [21:12:15]json_value_free done [21:12:15]process_json_proto returns [21:12:15]Send response to host [21:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27290,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:12:15]free response buf [21:12:15]execute_script done [21:12:15]execute_script returns [21:12:15]free content buf [21:12:15]Sock 12.Close socket [21:12:15]Sock 12.Thread stoped [21:12:16]ConnectInit Can't take IP for lk.salyk.kg [21:12:16]CommunicateWithHost connect error [21:12:16]CommunicateWithHost err = -1 [21:12:16]OFD Sender: Server communicate error [21:12:21]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:12:21]ProducePacketName [21:12:21]name=ofd_packets/00027177 [21:12:21]OFD Sender: To server: pG, [21:12:21]CommunicateWithHost lk.salyk.kg:30040 [21:12:21]ConnectInit lk.salyk.kg [21:12:26]ConnectInit Can't take IP for lk.salyk.kg [21:12:26]CommunicateWithHost connect error [21:12:26]CommunicateWithHost err = -1 [21:12:26]OFD Sender: Server communicate error [21:12:31]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:12:31]ProducePacketName [21:12:31]name=ofd_packets/00027177 [21:12:31]OFD Sender: To server: pG, [21:12:31]CommunicateWithHost lk.salyk.kg:30040 [21:12:31]ConnectInit lk.salyk.kg [21:12:36]ConnectInit Can't take IP for lk.salyk.kg [21:12:36]CommunicateWithHost connect error [21:12:36]CommunicateWithHost err = -1 [21:12:36]OFD Sender: Server communicate error [21:12:41]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:12:41]ProducePacketName [21:12:41]name=ofd_packets/00027177 [21:12:41]OFD Sender: To server: pG, [21:12:41]CommunicateWithHost lk.salyk.kg:30040 [21:12:41]ConnectInit lk.salyk.kg [21:12:46]ConnectInit Can't take IP for lk.salyk.kg [21:12:46]CommunicateWithHost connect error [21:12:46]CommunicateWithHost err = -1 [21:12:46]OFD Sender: Server communicate error [21:12:51]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:12:51]ProducePacketName [21:12:51]name=ofd_packets/00027177 [21:12:51]OFD Sender: To server: pG, [21:12:51]CommunicateWithHost lk.salyk.kg:30040 [21:12:51]ConnectInit lk.salyk.kg [21:12:56]ConnectInit Can't take IP for lk.salyk.kg [21:12:56]CommunicateWithHost connect error [21:12:56]CommunicateWithHost err = -1 [21:12:56]OFD Sender: Server communicate error [21:13:01]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:01]ProducePacketName [21:13:01]name=ofd_packets/00027177 [21:13:01]OFD Sender: To server: pG, [21:13:01]CommunicateWithHost lk.salyk.kg:30040 [21:13:01]ConnectInit lk.salyk.kg [21:13:06]ConnectInit Can't take IP for lk.salyk.kg [21:13:07]CommunicateWithHost connect error [21:13:07]CommunicateWithHost err = -1 [21:13:07]OFD Sender: Server communicate error [21:13:12]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:12]ProducePacketName [21:13:12]name=ofd_packets/00027177 [21:13:12]OFD Sender: To server: pG, [21:13:12]CommunicateWithHost lk.salyk.kg:30040 [21:13:12]ConnectInit lk.salyk.kg [21:13:17]ConnectInit Can't take IP for lk.salyk.kg [21:13:17]CommunicateWithHost connect error [21:13:17]CommunicateWithHost err = -1 [21:13:17]OFD Sender: Server communicate error [21:13:22]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:22]ProducePacketName [21:13:22]name=ofd_packets/00027177 [21:13:22]OFD Sender: To server: pG, [21:13:22]CommunicateWithHost lk.salyk.kg:30040 [21:13:22]ConnectInit lk.salyk.kg [21:13:27]ConnectInit Can't take IP for lk.salyk.kg [21:13:27]CommunicateWithHost connect error [21:13:27]CommunicateWithHost err = -1 [21:13:27]OFD Sender: Server communicate error [21:13:32]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00027177 [21:13:32]OFD Sender: To server: pG, [21:13:32]CommunicateWithHost lk.salyk.kg:30040 [21:13:32]ConnectInit lk.salyk.kg [21:13:37]ConnectInit Can't take IP for lk.salyk.kg [21:13:37]CommunicateWithHost connect error [21:13:37]CommunicateWithHost err = -1 [21:13:37]OFD Sender: Server communicate error [21:13:42]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:42]ProducePacketName [21:13:42]name=ofd_packets/00027177 [21:13:42]OFD Sender: To server: pG, [21:13:42]CommunicateWithHost lk.salyk.kg:30040 [21:13:42]ConnectInit lk.salyk.kg [21:13:47]ConnectInit Can't take IP for lk.salyk.kg [21:13:47]CommunicateWithHost connect error [21:13:47]CommunicateWithHost err = -1 [21:13:47]OFD Sender: Server communicate error [21:13:47]ConnectInit Can't connect to host [21:13:52]OFD Sender: Processing packet 27177 [packets to send 126, broken 13] [21:13:52]ProducePacketName [21:13:52]name=ofd_packets/00027177 [21:13:52]OFD Sender: To server: pG, [21:13:52]CommunicateWithHost lk.salyk.kg:30040 [21:13:52]ConnectInit lk.salyk.kg [21:13:52]accept exits with 11 [21:13:52]New connection [21:13:52]New thread 3066617188 created [21:13:52]Thread 3066473828 joined [21:13:52]Waiting for new connection... [21:13:52] Sock 11.Parse request [21:13:52]Sock 11.Check first char [21:13:52]Sock 11.First char is OK [21:13:52]request: POST /json_proto HTTP/1.0 [21:13:52]Method: POST [21:13:52]URL: /json_proto [21:13:52]Method is POST - this is cgi request [21:13:52]url: /json_proto [21:13:52]query_string will be loaded in cgi processing [21:13:52]execute_cgi json_proto POST (null) [21:13:52]execute_cgi path=json_proto method=POST [21:13:52]POST find Content-Length [21:13:52]Host: 10.101.50.102:8080 [21:13:52]Content-Length: 681 [21:13:52]Content-Type: application/json [21:13:52] [21:13:52]POST finish read [21:13:52]Found Content-Length = 681 [21:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 14.840, "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" ] } } [21:13:52]execute_script... [21:13: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)281157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 14.840, "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" ] } } [21:13:52]POST & json_proto [21:13:52]process_json_proto [21:13:52]json parsed OK: [21:13:52]protocol is kg_v1.0 [21:13:52]action value=close_receipt [21:13:52]process_action close_receipt [21:13:52]cmd_close_receipt [21:13:52]MH_GetDate [21:13:52]Write to MH i2c: F0 00 00 3D 07 33 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 09 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 09 00 3D 07 00 11 A8 8D 66 3C B9 F9 65 3B [21:13:52]GetLastDocTimeStamp 1720559526 [21:13:52]current date 1720559633 [21:13:52]FM_GetShiftState [21:13:52]SAM_PROTO_GetShiftState [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 13 01 00 [21:13:52]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0E 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 D0 [21:13:52]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:13:52]wFMCommunicate OK [21:13:52]SAM_PROTO_GetShiftState done [21:13:52]FM_GetShiftState done [21:13:52]opened in 1720484494 [21:13:52]opened+sec_in_day 1720570894 [21:13:52]quantity*price = 100021 [21:13:52]sum+1 = 100023 [21:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 333 09.07.2024 21:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27291 ФПД: 93539649619057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211354&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27291&fm=93539649619057&tin=00112200510239®Number=0000000000151136&sum=100000 [21:13:56]StoreToDocumentArchive [21:13:56]shift 114 fd 27291 [21:13:56]save to /storage/0114/doc_00027291 [21:13:56]save last doc name /storage/0114/doc_00027291 to /storage/kkm_last_doc_name [21:13:56]save OK [21:13:56]Clear old archive folders... [21:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:56]tlvbuf is 0039A6F0 [21:13:56]SAM_PROTO_ClearQueue [21:13:56]wFMCommunicate request_size=4 [21:13:56]MH_SAM_APDU [21:13:56]CAPDU: 80 09 00 00 [21:13:56]Write to MH i2c: E2 08 00 4B 07 80 09 00 00 00 00 00 00 C4 [21:13:56]Write i2c OK [21:13:56]MH_I2C_Read... [21:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:56]Read from MH i2c: E2 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: E2 03 00 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [21:13:56]RAPDU: 90 00 [21:13:56]wFMCommunicate OK [21:13:56]SAM_PROTO_ClearQueue done [21:13:56]KKMCreateOFDPacket [21:13:56]OFDProtocolAddRootSTLVToBuf [21:13:56]FM_MakeSignedData [21:13:56]FM_MakeSignedData [21:13:56]SAM_PROTO_SignData [21:13:56]wFMCommunicate request_size=4 [21:13:56]MH_SAM_APDU [21:13:56]CAPDU: 80 0D 01 02 [21:13:56]Write to MH i2c: E2 08 00 4C 07 80 0D 01 02 00 00 00 00 CC [21:13:56]Write i2c OK [21:13:56]MH_I2C_Read... [21:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:56]Read from MH i2c: E2 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: E2 03 00 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [21:13:56]RAPDU: 90 00 [21:13:56]wFMCommunicate OK [21:13:56]wFMCommunicate request_size=255 [21:13:56]MH_SAM_APDU [21:13:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4D 01 00 00 F4 03 04 00 12 A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 ConnectInit Can't take IP for lk.salyk.kg [21:13:57]30 CommunicateWithHost connect error [21:13:57]30 CommunicateWithHost err = -1 [21:13:57]30 OFD Sender: Server communicate error [21:13:57]30 30 30 39 35 39 34 31 38 10 04 04 00 9B 6A 00 00 35 04 06 00 55 [21:13:57]Write to MH i2c: E2 02 01 4D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4D 01 00 00 F4 03 04 00 12 A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9B 6A 00 00 35 04 06 00 55 00 00 E2 [21:13:58]Write i2c OK [21:13:58]MH_I2C_Read... [21:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:58]Read from MH i2c: E2 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 03 00 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [21:13:58]RAPDU: 90 00 [21:13:58]wFMCommunicate OK [21:13:58]wFMCommunicate request_size=10 [21:13:58]MH_SAM_APDU [21:13:58]CAPDU: 80 0D 02 02 05 12 E5 96 84 71 [21:13:58]Write to MH i2c: E2 0D 00 4E 07 80 0D 02 02 05 00 12 E5 96 84 71 00 00 5B [21:13:58]Write i2c OK [21:13:58]MH_I2C_Read... [21:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:58]Read from MH i2c: E2 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 03 00 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [21:13:58]RAPDU: 90 00 [21:13:58]wFMCommunicate OK [21:13:58]wFMCommunicate request_size=4 [21:13:58]MH_SAM_APDU [21:13:58]CAPDU: 80 0D 03 02 [21:13:58]Write to MH i2c: E2 08 00 4F 07 80 0D 03 02 00 00 00 00 D1 [21:13:58]Write i2c OK [21:13:58]MH_I2C_Read... [21:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:58]Read from MH i2c: E2 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 0B 00 [21:13:58]MH_I2C_Read... [21:13:58]Read from MH i2c: E2 0B 00 4F 07 00 D1 0C 49 15 EE 34 B9 21 90 00 09 [21:13:58]RAPDU: D1 0C 49 15 EE 34 B9 21 90 00 [21:13:58]wFMCommunicate OK [21:13:58]SAM_PROTO_SignData done [21:13:58]FM_MakeSignedData done [21:13:58]CreateOFDProtocolMessage [21:13:58]wFMCommunicate request_size=4 [21:13:58]MH_SAM_APDU [21:13:58]CAPDU: 80 11 00 00 [21:13:58]Write to MH i2c: E2 08 00 50 07 80 11 00 00 00 00 00 00 D1 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 17 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 17 00 50 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 28 [21:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:13:59]wFMCommunicate OK [21:13:59]CreateOFDProtocolMessage done [21:13:59]OFDSenderStorePacket 27291 [21:13:59]StoreOFDPacket docnum=27291 [21:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 27 61 07 01 E2 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 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 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 4D 01 00 00 F4 03 04 00 12 A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9B 6A 00 00 35 04 06 00 55 12 E5 96 84 71 D1 0C 49 15 EE 34 B9 21 [21:13:59]CheckFolder [21:13:59]dirname=/storage/ofd_packets [21:13:59]CheckFolder done [21:13:59]ProducePacketName [21:13:59]name=ofd_packets/00027291 [21:13:59]NVStorageSaveData ofd_packets/00027291 [21:13:59]File name is /storage/ofd_packets/00027291 [21:13:59]Write 301 bytes [21:13:59]NVStorageSaveData done [21:13:59]OFDSenderStorePacket done [21:13:59]KKMCreateOFDPacket done [21:13:59]NVStorageSaveData kkm_last_timestamp [21:13:59]File name is /storage/kkm_last_timestamp [21:13:59]Write 4 bytes [21:13:59]NVStorageSaveData done [21:13:59]ExternCall_PrintAddStr [21:13:59]wPrintStart [21:13:59]Write to MH i2c: 01 00 00 51 07 58 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: 01 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: 01 07 00 [21:13:59]MH_I2C_Read... [21:13:59]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:13:59]ProducePacketName [21:13:59]name=ofd_packets/00027177 [21:13:59]OFD Sender: To server: pG, [21:13:59]CommunicateWithHost lk.salyk.kg:30040 [21:13:59]ConnectInit lk.salyk.kg [21:13:59]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [21:13:59]RasterBufferAndPrint [21:13:59]line Счет N : (1)281157 [21:13:59]line ИНН: 00112200510239 [21:13:59]line Контрольно-Кассовый Чек [21:13:59]line ПРОДАЖА [21:13:59]line ТРК (МРК, ГНК) : 2 [21:13:59]line Товар: 2710124130 [21:13:59]line Аи-92-К-5 [21:13:59]line 14.840 * 67.40 [21:13:59]line = 1000.22 [21:13:59]line НДС 12% НСП 1% [21:13:59]line > о реализуемом товаре [21:13:59]line ОКРУГЛЕНИЕ: -0.22 [21:13:59]line ИТОГО: 1000.00 [21:13:59]line Внесено: 1000.00 [21:13:59]line СДАЧА: 0.00 [21:13:59]line НСП 1% : 8.85 [21:13:59]line НДС 12% : 106.22 [21:13:59]line Наличными: 1000.00 [21:13:59]line Безнал.: 0.00 [21:13:59]line Место: АЗС № 50 "Bishkek Petroleum" [21:13:59]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:13:59]line СНО: Общий режим [21:13:59]line Чек 333 09.07.2024 21:13 [21:13:59]line Смена: 114 ФФД: 1.0 [21:13:59]line ЗНМ: 0300000229 [21:13:59]line РНМ: 0000000000151136 [21:13:59]line Версия ККМ: v1.0 [21:13:59]line ФМ: 0000000000959418 [21:13:59]line ФД: 27291 [21:13:59]line ФПД: 93539649619057 [21:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211354&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27291&fm=93539649619057&tin=00112200510239®Number=0000000000151136&sum=100000 [21:13:59]written 0, free lines is 4095 [21:13:59]Write to MH i2c: 01 00 00 7C 07 83 [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 07 00 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 BE 0C 54 [21:14:00]RasterBufferAndPrint [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]written 0, free lines is 3388 [21:14:00]MH_Cut [21:14:00]Write to MH i2c: D1 01 00 83 07 01 5C [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 01 00 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 01 00 83 07 00 5B [21:14:00]Write to MH i2c: 01 00 00 84 07 8B [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]*** Cut start [21:14:00]*** Partial cut [21:14:00]*** CUTSNS_PIN = 1 [21:14:00]*** CUTSNS_PIN = 0 [21:14:01]*** Brake cut motor [21:14:01]Read from MH i2c: 01 [21:14:01]MH_I2C_Read... [21:14:01]*** Stop cut motor [21:14:01]*** Cut end [21:14:01]Read from MH i2c: 01 07 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 FF 0F A0 [21:14:01]process_action close_receipt done [21:14:01]requested_data is exist [21:14:01]produce_requested_data [21:14:01]requested_item fm.sn is exist - process it [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 11 00 00 [21:14:01]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:01]Read from MH i2c: E2 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 17 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 5D [21:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:14:01]wFMCommunicate OK [21:14:01]requested_item fd.num is exist - process it [21:14:01]SAM_PROTO_GetFieldsCounters [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 13 00 00 [21:14:01]Write to MH i2c: E2 08 00 86 07 80 13 00 00 00 00 00 00 09 [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 62 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 62 00 86 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9B 6A 00 00 0E 04 04 00 72 00 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 87 [21:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9B 6A 00 00 0E 04 04 00 72 00 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 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_GetFieldsCounters done [21:14:02]requested_item shift.num is exist - process it [21:14:02]requested_item shift.opened is exist - process it [21:14:02]req_shift_opened [21:14:02]FM_GetShiftState [21:14:02]SAM_PROTO_GetShiftState [21:14:02]wFMCommunicate request_size=4 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 13 01 00 [21:14:02]Write to MH i2c: E2 08 00 87 07 80 13 01 00 00 00 00 00 0B [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 87 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 19 [21:14:02]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_GetShiftState done [21:14:02]FM_GetShiftState done [21:14:02]req_shift_opened done [21:14:02]requested_item shift.open_date is exist - process it [21:14:02]req_shift_open_date [21:14:02]req_shift_open_date done [21:14:02]produce_requested_data done [21:14:02]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27291,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:14:02]process_action_free close_receipt [21:14:02]json_value_free [21:14:02]json_value_free done [21:14:02]process_json_proto returns [21:14:02]Send response to host [21:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27291,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:14:02]free response buf [21:14:02]execute_script done [21:14:02]execute_script returns [21:14:02]free content buf [21:14:02]Sock 11.Close socket [21:14:02]Sock 11.Thread stoped [21:14:04]ConnectInit Can't take IP for lk.salyk.kg [21:14:04]CommunicateWithHost connect error [21:14:04]CommunicateWithHost err = -1 [21:14:04]OFD Sender: Server communicate error [21:14:09]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:09]ProducePacketName [21:14:09]name=ofd_packets/00027177 [21:14:09]OFD Sender: To server: pG, [21:14:09]CommunicateWithHost lk.salyk.kg:30040 [21:14:09]ConnectInit lk.salyk.kg [21:14:14]ConnectInit Can't take IP for lk.salyk.kg [21:14:14]CommunicateWithHost connect error [21:14:14]CommunicateWithHost err = -1 [21:14:14]OFD Sender: Server communicate error [21:14:19]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:19]ProducePacketName [21:14:19]name=ofd_packets/00027177 [21:14:19]OFD Sender: To server: pG, [21:14:19]CommunicateWithHost lk.salyk.kg:30040 [21:14:19]ConnectInit lk.salyk.kg [21:14:24]ConnectInit Can't take IP for lk.salyk.kg [21:14:24]CommunicateWithHost connect error [21:14:24]CommunicateWithHost err = -1 [21:14:24]OFD Sender: Server communicate error [21:14:29]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:29]ProducePacketName [21:14:29]name=ofd_packets/00027177 [21:14:29]OFD Sender: To server: pG, [21:14:29]CommunicateWithHost lk.salyk.kg:30040 [21:14:29]ConnectInit lk.salyk.kg [21:14:34]ConnectInit Can't take IP for lk.salyk.kg [21:14:34]CommunicateWithHost connect error [21:14:34]CommunicateWithHost err = -1 [21:14:34]OFD Sender: Server communicate error [21:14:39]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:39]ProducePacketName [21:14:39]name=ofd_packets/00027177 [21:14:39]OFD Sender: To server: pG, [21:14:39]CommunicateWithHost lk.salyk.kg:30040 [21:14:39]ConnectInit lk.salyk.kg [21:14:44]ConnectInit Can't take IP for lk.salyk.kg [21:14:44]CommunicateWithHost connect error [21:14:44]CommunicateWithHost err = -1 [21:14:44]OFD Sender: Server communicate error [21:14:49]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:49]ProducePacketName [21:14:49]name=ofd_packets/00027177 [21:14:49]OFD Sender: To server: pG, [21:14:49]CommunicateWithHost lk.salyk.kg:30040 [21:14:49]ConnectInit lk.salyk.kg [21:14:54]ConnectInit Can't take IP for lk.salyk.kg [21:14:54]CommunicateWithHost connect error [21:14:54]CommunicateWithHost err = -1 [21:14:54]OFD Sender: Server communicate error [21:14:59]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:14:59]ProducePacketName [21:14:59]name=ofd_packets/00027177 [21:14:59]OFD Sender: To server: pG, [21:14:59]CommunicateWithHost lk.salyk.kg:30040 [21:14:59]ConnectInit lk.salyk.kg [21:15:04]ConnectInit Can't take IP for lk.salyk.kg [21:15:04]CommunicateWithHost connect error [21:15:04]CommunicateWithHost err = -1 [21:15:04]OFD Sender: Server communicate error [21:15:09]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:09]ProducePacketName [21:15:09]name=ofd_packets/00027177 [21:15:09]OFD Sender: To server: pG, [21:15:09]CommunicateWithHost lk.salyk.kg:30040 [21:15:09]ConnectInit lk.salyk.kg [21:15:14]ConnectInit Can't take IP for lk.salyk.kg [21:15:14]CommunicateWithHost connect error [21:15:14]CommunicateWithHost err = -1 [21:15:14]OFD Sender: Server communicate error [21:15:19]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:19]ProducePacketName [21:15:19]name=ofd_packets/00027177 [21:15:19]OFD Sender: To server: pG, [21:15:19]CommunicateWithHost lk.salyk.kg:30040 [21:15:19]ConnectInit lk.salyk.kg [21:15:24]ConnectInit Can't take IP for lk.salyk.kg [21:15:24]CommunicateWithHost connect error [21:15:24]CommunicateWithHost err = -1 [21:15:24]OFD Sender: Server communicate error [21:15:29]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:29]ProducePacketName [21:15:29]name=ofd_packets/00027177 [21:15:29]OFD Sender: To server: pG, [21:15:29]CommunicateWithHost lk.salyk.kg:30040 [21:15:29]ConnectInit lk.salyk.kg [21:15:34]ConnectInit Can't take IP for lk.salyk.kg [21:15:34]CommunicateWithHost connect error [21:15:34]CommunicateWithHost err = -1 [21:15:34]OFD Sender: Server communicate error [21:15:39]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:39]ProducePacketName [21:15:39]name=ofd_packets/00027177 [21:15:39]OFD Sender: To server: pG, [21:15:39]CommunicateWithHost lk.salyk.kg:30040 [21:15:39]ConnectInit lk.salyk.kg [21:15:44]ConnectInit Can't take IP for lk.salyk.kg [21:15:44]CommunicateWithHost connect error [21:15:44]CommunicateWithHost err = -1 [21:15:44]OFD Sender: Server communicate error [21:15:49]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:49]ProducePacketName [21:15:49]name=ofd_packets/00027177 [21:15:49]OFD Sender: To server: pG, [21:15:49]CommunicateWithHost lk.salyk.kg:30040 [21:15:49]ConnectInit lk.salyk.kg [21:15:54]ConnectInit Can't take IP for lk.salyk.kg [21:15:54]CommunicateWithHost connect error [21:15:54]CommunicateWithHost err = -1 [21:15:54]OFD Sender: Server communicate error [21:15:59]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:15:59]ProducePacketName [21:15:59]name=ofd_packets/00027177 [21:15:59]OFD Sender: To server: pG, [21:15:59]CommunicateWithHost lk.salyk.kg:30040 [21:15:59]ConnectInit lk.salyk.kg [21:16:04]ConnectInit Can't take IP for lk.salyk.kg [21:16:04]CommunicateWithHost connect error [21:16:04]CommunicateWithHost err = -1 [21:16:04]OFD Sender: Server communicate error [21:16:05]ConnectInit Can't connect to host [21:16:09]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:16:09]ProducePacketName [21:16:09]name=ofd_packets/00027177 [21:16:09]OFD Sender: To server: pG, [21:16:09]CommunicateWithHost lk.salyk.kg:30040 [21:16:09]ConnectInit lk.salyk.kg [21:16:14]ConnectInit Can't take IP for lk.salyk.kg [21:16:14]CommunicateWithHost connect error [21:16:14]CommunicateWithHost err = -1 [21:16:14]OFD Sender: Server communicate error [21:16:19]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:16:19]ProducePacketName [21:16:19]name=ofd_packets/00027177 [21:16:19]OFD Sender: To server: pG, [21:16:19]CommunicateWithHost lk.salyk.kg:30040 [21:16:19]ConnectInit lk.salyk.kg [21:16:24]ConnectInit Can't take IP for lk.salyk.kg [21:16:24]CommunicateWithHost connect error [21:16:24]CommunicateWithHost err = -1 [21:16:24]OFD Sender: Server communicate error [21:16:29]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00027177 [21:16:29]OFD Sender: To server: pG, [21:16:30]CommunicateWithHost lk.salyk.kg:30040 [21:16:30]ConnectInit lk.salyk.kg [21:16:35]ConnectInit Can't take IP for lk.salyk.kg [21:16:35]CommunicateWithHost connect error [21:16:35]CommunicateWithHost err = -1 [21:16:35]OFD Sender: Server communicate error [21:16:40]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00027177 [21:16:40]OFD Sender: To server: pG, [21:16:40]CommunicateWithHost lk.salyk.kg:30040 [21:16:40]ConnectInit lk.salyk.kg [21:16:45]ConnectInit Can't take IP for lk.salyk.kg [21:16:45]CommunicateWithHost connect error [21:16:45]CommunicateWithHost err = -1 [21:16:45]OFD Sender: Server communicate error [21:16:50]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:16:50]ProducePacketName [21:16:50]name=ofd_packets/00027177 [21:16:50]OFD Sender: To server: pG, [21:16:50]CommunicateWithHost lk.salyk.kg:30040 [21:16:50]ConnectInit lk.salyk.kg [21:16:55]ConnectInit Can't take IP for lk.salyk.kg [21:16:55]CommunicateWithHost connect error [21:16:55]CommunicateWithHost err = -1 [21:16:55]OFD Sender: Server communicate error [21:17:00]OFD Sender: Processing packet 27177 [packets to send 127, broken 13] [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00027177 [21:17:00]OFD Sender: To server: pG, [21:17:00]CommunicateWithHost lk.salyk.kg:30040 [21:17:00]ConnectInit lk.salyk.kg [21:17:01]accept exits with 10 [21:17:01]New connection [21:17:01]New thread 3066473828 created [21:17:01]Thread 3066617188 joined [21:17:01]Waiting for new connection... [21:17:01] Sock 10.Parse request [21:17:01]Sock 10.Check first char [21:17:01]Sock 10.First char is OK [21:17:01]request: POST /json_proto HTTP/1.0 [21:17:01]Method: POST [21:17:01]URL: /json_proto [21:17:01]Method is POST - this is cgi request [21:17:01]url: /json_proto [21:17:01]query_string will be loaded in cgi processing [21:17:01]execute_cgi json_proto POST (null) [21:17:01]execute_cgi path=json_proto method=POST [21:17:01]POST find Content-Length [21:17:01]Host: 10.101.50.102:8080 [21:17:01]Content-Length: 770 [21:17:01]Content-Type: application/json [21:17:01] [21:17:01]POST finish read [21:17:01]Found Content-Length = 770 [21:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 4.460, "sum" : 300.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: Bakai Bank", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:01]execute_script... [21:17: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)281158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 4.460, "sum" : 300.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: Bakai Bank", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:01]POST & json_proto [21:17:01]process_json_proto [21:17:01]json parsed OK: [21:17:01]protocol is kg_v1.0 [21:17:01]action value=close_receipt [21:17:01]process_action close_receipt [21:17:01]cmd_close_receipt [21:17:01]MH_GetDate [21:17:01]Write to MH i2c: F0 00 00 88 07 7E [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: F0 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: F0 09 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: F0 09 00 88 07 00 CE A8 8D 66 3C B9 F9 65 43 [21:17:01]GetLastDocTimeStamp 1720559634 [21:17:01]current date 1720559822 [21:17:01]FM_GetShiftState [21:17:01]SAM_PROTO_GetShiftState [21:17:01]wFMCommunicate request_size=4 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 13 01 00 [21:17:01]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 0E 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 1B [21:17:01]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:17:01]wFMCommunicate OK [21:17:01]SAM_PROTO_GetShiftState done [21:17:01]FM_GetShiftState done [21:17:01]opened in 1720484494 [21:17:01]opened+sec_in_day 1720570894 [21:17:01]quantity*price = 30060 [21:17:01]sum+1 = 30061 [21:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 334 09.07.2024 21:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 Платежная система: Bakai Bank ФМ: 0000000000959418 ФД: 27292 ФПД: 263000283926452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211703&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27292&fm=263000283926452&tin=00112200510239®Number=0000000000151136&sum=30060 [21:17:05]StoreToDocumentArchive [21:17:05]shift 114 fd 27292 [21:17:05]save to /storage/0114/doc_00027292 [21:17:05]save last doc name /storage/0114/doc_00027292 to /storage/kkm_last_doc_name [21:17:05]save OK [21:17:05]Clear old archive folders... [21:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:05]tlvbuf is 005B9C60 [21:17:05]SAM_PROTO_ClearQueue [21:17:05]wFMCommunicate request_size=4 [21:17:05]MH_SAM_APDU [21:17:05]CAPDU: 80 09 00 00 [21:17:05]Write to MH i2c: E2 08 00 96 07 80 09 00 00 00 00 00 00 0F [21:17:05]Write i2c OK [21:17:05]MH_I2C_Read... [21:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:05]Read from MH i2c: E2 [21:17:05]MH_I2C_Read... [21:17:05]Read from MH i2c: E2 03 00 [21:17:05]MH_I2C_Read... [21:17:05]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [21:17:05]RAPDU: 90 00 [21:17:05]wFMCommunicate OK [21:17:05]SAM_PROTO_ClearQueue done [21:17:05]KKMCreateOFDPacket [21:17:05]OFDProtocolAddRootSTLVToBuf [21:17:05]FM_MakeSignedData [21:17:05]FM_MakeSignedData [21:17:05]SAM_PROTO_SignData [21:17:05]wFMCommunicate request_size=4 [21:17:05]MH_SAM_APDU [21:17:05]CAPDU: 80 0D 01 02 [21:17:05]Write to MH i2c: E2 08 00 97 07 80 0D 01 02 00 00 00 00 17 [21:17:05]Write i2c OK [21:17:05]MH_I2C_Read... [21:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:05]Read from MH i2c: E2 [21:17:05]MH_I2C_Read... [21:17:05]Read from MH i2c: E2 03 00 [21:17:05]MH_I2C_Read... [21:17:05]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [21:17:05]RAPDU: 90 00 [21:17:06]wFMCommunicate OK [21:17:06]wFMCommunicate request_size=255 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 CF A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9C 6A 00 00 35 04 06 00 EF [21:17:06]Write to MH i2c: E2 02 01 98 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 CF A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9C 6A 00 00 35 04 06 00 EF 00 00 5A [21:17:07]Write i2c OK [21:17:07]MH_I2C_Read... [21:17:07]Read from MH i2c: E2 [21:17:07]MH_I2C_Read... [21:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:07]Read from MH i2c: E2 03 00 [21:17:07]MH_I2C_Read... [21:17:07]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [21:17:07]RAPDU: 90 00 [21:17:07]wFMCommunicate OK [21:17:07]wFMCommunicate request_size=10 [21:17:07]MH_SAM_APDU [21:17:07]CAPDU: 80 0D 02 02 05 32 86 7F CF B4 [21:17:07]Write to MH i2c: E2 0D 00 99 07 80 0D 02 02 05 00 32 86 7F CF B4 00 00 DE [21:17:07]Write i2c OK [21:17:07]MH_I2C_Read... [21:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:07]Read from MH i2c: E2 [21:17:07]MH_I2C_Read... [21:17:07]Read from MH i2c: E2 03 00 [21:17:07]MH_I2C_Read... [21:17:07]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [21:17:07]RAPDU: 90 00 [21:17:08]wFMCommunicate OK [21:17:08]wFMCommunicate request_size=4 [21:17:08]MH_SAM_APDU [21:17:08]CAPDU: 80 0D 03 02 [21:17:08]Write to MH i2c: E2 08 00 9A 07 80 0D 03 02 00 00 00 00 1C [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:08]Read from MH i2c: E2 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0B 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0B 00 9A 07 00 FD 23 8F F8 D5 DD 20 5D 90 00 F3 [21:17:08]RAPDU: FD 23 8F F8 D5 DD 20 5D 90 00 [21:17:08]wFMCommunicate OK [21:17:08]SAM_PROTO_SignData done [21:17:08]FM_MakeSignedData done [21:17:08]CreateOFDProtocolMessage [21:17:08]wFMCommunicate request_size=4 [21:17:08]MH_SAM_APDU [21:17:08]CAPDU: 80 11 00 00 [21:17:08]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:08]Read from MH i2c: E2 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 17 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 73 [21:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:17:08]wFMCommunicate OK [21:17:08]CreateOFDProtocolMessage done [21:17:08]OFDSenderStorePacket 27292 [21:17:08]StoreOFDPacket docnum=27292 [21:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 F5 16 07 01 6E 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 CF A8 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9C 6A 00 00 35 04 06 00 EF 32 86 7F CF B4 FD 23 8F F8 D5 DD 20 5D [21:17:08]CheckFolder [21:17:08]dirname=/storage/ofd_packets [21:17:08]CheckFolder done [21:17:08]ProducePacketName [21:17:08]name=ofd_packets/00027292 [21:17:08]NVStorageSaveData ofd_packets/00027292 [21:17:08]File name is /storage/ofd_packets/00027292 [21:17:08]Write 301 bytes [21:17:08]NVStorageSaveData done [21:17:08]OFDSenderStorePacket done [21:17:08]KKMCreateOFDPacket done [21:17:08]NVStorageSaveData kkm_last_timestamp [21:17:08]File name is /storage/kkm_last_timestamp [21:17:08]Write 4 bytes [21:17:08]NVStorageSaveData done [21:17:08]ExternCall_PrintAddStr [21:17:08]wPrintStart [21:17:08]Write to MH i2c: 01 00 00 9C 07 A3 [21:17:08]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:08]ProducePacketName [21:17:08]name=ofd_packets/00027177 [21:17:08]OFD Sender: To server: pG, [21:17:08]CommunicateWithHost lk.salyk.kg:30040 [21:17:08]ConnectInit lk.salyk.kg [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: 01 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: 01 07 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [21:17:08]RasterBufferAndPrint [21:17:08]line Счет N : (1)281158 [21:17:08]line ИНН: 00112200510239 [21:17:08]line Контрольно-Кассовый Чек [21:17:08]line ПРОДАЖА [21:17:08]line ТРК (МРК, ГНК) : 2 [21:17:08]line Товар: 2710124130 [21:17:08]line Аи-92-К-5 [21:17:08]line 4.460 * 67.40 [21:17:08]line = 300.60 [21:17:08]line НДС 12% НСП 1% [21:17:08]line > о реализуемом товаре [21:17:08]line ИТОГО: 300.60 [21:17:08]line НСП 1% : 2.66 [21:17:08]line НДС 12% : 31.92 [21:17:08]line Наличными: 0.00 [21:17:08]line Безнал.: 300.60 [21:17:08]line Место: АЗС № 50 "Bishkek Petroleum" [21:17:08]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:17:08]line СНО: Общий режим [21:17:08]line Чек 334 09.07.2024 21:17 [21:17:08]line Смена: 114 ФФД: 1.0 [21:17:08]line ЗНМ: 0300000229 [21:17:08]line РНМ: 0000000000151136 [21:17:08]line Версия ККМ: v1.0 [21:17:08]line Платежная система: Bakai Bank [21:17:08]line ФМ: 0000000000959418 [21:17:08]line ФД: 27292 [21:17:08]line ФПД: 263000283926452 [21:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211703&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27292&fm=263000283926452&tin=00112200510239®Number=0000000000151136&sum=30060 [21:17:08]written 0, free lines is 4095 [21:17:09]Write to MH i2c: 01 00 00 C6 07 CD [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 07 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 DC 0C BC [21:17:09]RasterBufferAndPrint [21:17:09]line [21:17:09]line [21:17:09]line [21:17:09]line [21:17:09]line [21:17:09]written 0, free lines is 3408 [21:17:09]MH_Cut [21:17:09]Write to MH i2c: D1 01 00 CD 07 01 A6 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: D1 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: D1 01 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: D1 01 00 CD 07 00 A5 [21:17:09]Write to MH i2c: 01 00 00 CE 07 D5 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:10]*** Cut start [21:17:10]*** Partial cut [21:17:10]*** CUTSNS_PIN = 1 [21:17:10]*** CUTSNS_PIN = 0 [21:17:10]*** Brake cut motor [21:17:10]Read from MH i2c: 01 [21:17:10]MH_I2C_Read... [21:17:10]*** Stop cut motor [21:17:10]*** Cut end [21:17:10]Read from MH i2c: 01 07 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [21:17:10]process_action close_receipt done [21:17:10]requested_data is exist [21:17:10]produce_requested_data [21:17:10]requested_item fm.sn is exist - process it [21:17:10]wFMCommunicate request_size=4 [21:17:10]MH_SAM_APDU [21:17:10]CAPDU: 80 11 00 00 [21:17:10]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [21:17:11]Write i2c OK [21:17:11]MH_I2C_Read... [21:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:11]Read from MH i2c: E2 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: E2 17 00 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 A7 [21:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:17:11]wFMCommunicate OK [21:17:11]requested_item fd.num is exist - process it [21:17:11]SAM_PROTO_GetFieldsCounters [21:17:11]wFMCommunicate request_size=4 [21:17:11]MH_SAM_APDU [21:17:11]CAPDU: 80 13 00 00 [21:17:11]Write to MH i2c: E2 08 00 D0 07 80 13 00 00 00 00 00 00 53 [21:17:11]Write i2c OK [21:17:11]MH_I2C_Read... [21:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:11]Read from MH i2c: E2 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: E2 62 00 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: E2 62 00 D0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9C 6A 00 00 0E 04 04 00 72 00 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 D5 [21:17:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9C 6A 00 00 0E 04 04 00 72 00 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 [21:17:12]wFMCommunicate OK [21:17:12]SAM_PROTO_GetFieldsCounters done [21:17:12]requested_item shift.num is exist - process it [21:17:12]requested_item shift.opened is exist - process it [21:17:12]req_shift_opened [21:17:12]FM_GetShiftState [21:17:12]SAM_PROTO_GetShiftState [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 13 01 00 [21:17:12]Write to MH i2c: E2 08 00 D1 07 80 13 01 00 00 00 00 00 55 [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 0E 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 0E 00 D1 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 63 [21:17:12]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:17:12]wFMCommunicate OK [21:17:12]SAM_PROTO_GetShiftState done [21:17:12]FM_GetShiftState done [21:17:12]req_shift_opened done [21:17:12]requested_item shift.open_date is exist - process it [21:17:12]req_shift_open_date [21:17:12]req_shift_open_date done [21:17:12]produce_requested_data done [21:17:12]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27292,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:17:12]process_action_free close_receipt [21:17:12]json_value_free [21:17:12]json_value_free done [21:17:12]process_json_proto returns [21:17:12]Send response to host [21:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27292,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:17:12]free response buf [21:17:12]execute_script done [21:17:12]execute_script returns [21:17:12]free content buf [21:17:12]Sock 10.Close socket [21:17:12]Sock 10.Thread stoped [21:17:13]ConnectInit Can't take IP for lk.salyk.kg [21:17:13]CommunicateWithHost connect error [21:17:13]CommunicateWithHost err = -1 [21:17:13]OFD Sender: Server communicate error [21:17:18]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:18]ProducePacketName [21:17:18]name=ofd_packets/00027177 [21:17:18]OFD Sender: To server: pG, [21:17:18]CommunicateWithHost lk.salyk.kg:30040 [21:17:18]ConnectInit lk.salyk.kg [21:17:23]ConnectInit Can't take IP for lk.salyk.kg [21:17:23]CommunicateWithHost connect error [21:17:23]CommunicateWithHost err = -1 [21:17:23]OFD Sender: Server communicate error [21:17:28]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:28]ProducePacketName [21:17:28]name=ofd_packets/00027177 [21:17:28]OFD Sender: To server: pG, [21:17:28]CommunicateWithHost lk.salyk.kg:30040 [21:17:28]ConnectInit lk.salyk.kg [21:17:33]ConnectInit Can't take IP for lk.salyk.kg [21:17:33]CommunicateWithHost connect error [21:17:33]CommunicateWithHost err = -1 [21:17:33]OFD Sender: Server communicate error [21:17:38]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00027177 [21:17:38]OFD Sender: To server: pG, [21:17:38]CommunicateWithHost lk.salyk.kg:30040 [21:17:38]ConnectInit lk.salyk.kg [21:17:43]ConnectInit Can't take IP for lk.salyk.kg [21:17:43]CommunicateWithHost connect error [21:17:43]CommunicateWithHost err = -1 [21:17:43]OFD Sender: Server communicate error [21:17:48]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:48]ProducePacketName [21:17:48]name=ofd_packets/00027177 [21:17:48]OFD Sender: To server: pG, [21:17:48]CommunicateWithHost lk.salyk.kg:30040 [21:17:48]ConnectInit lk.salyk.kg [21:17:53]ConnectInit Can't take IP for lk.salyk.kg [21:17:53]CommunicateWithHost connect error [21:17:53]CommunicateWithHost err = -1 [21:17:53]OFD Sender: Server communicate error [21:17:58]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:17:58]ProducePacketName [21:17:58]name=ofd_packets/00027177 [21:17:58]OFD Sender: To server: pG, [21:17:58]CommunicateWithHost lk.salyk.kg:30040 [21:17:58]ConnectInit lk.salyk.kg [21:18:03]ConnectInit Can't take IP for lk.salyk.kg [21:18:03]CommunicateWithHost connect error [21:18:03]CommunicateWithHost err = -1 [21:18:03]OFD Sender: Server communicate error [21:18:08]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:18:08]ProducePacketName [21:18:08]name=ofd_packets/00027177 [21:18:08]OFD Sender: To server: pG, [21:18:08]CommunicateWithHost lk.salyk.kg:30040 [21:18:08]ConnectInit lk.salyk.kg [21:18:13]ConnectInit Can't take IP for lk.salyk.kg [21:18:13]CommunicateWithHost connect error [21:18:13]CommunicateWithHost err = -1 [21:18:13]OFD Sender: Server communicate error [21:18:18]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:18:18]ProducePacketName [21:18:18]name=ofd_packets/00027177 [21:18:19]OFD Sender: To server: pG, [21:18:19]CommunicateWithHost lk.salyk.kg:30040 [21:18:19]ConnectInit lk.salyk.kg [21:18:23]ConnectInit Can't connect to host [21:18:24]ConnectInit Can't take IP for lk.salyk.kg [21:18:24]CommunicateWithHost connect error [21:18:24]CommunicateWithHost err = -1 [21:18:24]OFD Sender: Server communicate error [21:18:29]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:18:29]ProducePacketName [21:18:29]name=ofd_packets/00027177 [21:18:29]OFD Sender: To server: pG, [21:18:29]CommunicateWithHost lk.salyk.kg:30040 [21:18:29]ConnectInit lk.salyk.kg [21:18:34]ConnectInit Can't take IP for lk.salyk.kg [21:18:34]CommunicateWithHost connect error [21:18:34]CommunicateWithHost err = -1 [21:18:34]OFD Sender: Server communicate error [21:18:39]OFD Sender: Processing packet 27177 [packets to send 128, broken 13] [21:18:39]ProducePacketName [21:18:39]name=ofd_packets/00027177 [21:18:39]OFD Sender: To server: pG, [21:18:39]CommunicateWithHost lk.salyk.kg:30040 [21:18:39]ConnectInit lk.salyk.kg [21:18:39]accept exits with 12 [21:18:39]New connection [21:18:39]New thread 3066617188 created [21:18:39]Thread 3066473828 joined [21:18:39]Waiting for new connection... [21:18:39] Sock 12.Parse request [21:18:39]Sock 12.Check first char [21:18:39]Sock 12.First char is OK [21:18:39]request: POST /json_proto HTTP/1.0 [21:18:39]Method: POST [21:18:39]URL: /json_proto [21:18:39]Method is POST - this is cgi request [21:18:39]url: /json_proto [21:18:39]query_string will be loaded in cgi processing [21:18:39]execute_cgi json_proto POST (null) [21:18:39]execute_cgi path=json_proto method=POST [21:18:39]POST find Content-Length [21:18:39]Host: 10.101.50.102:8080 [21:18:39]Content-Length: 673 [21:18:39]Content-Type: application/json [21:18:39] [21:18:39]POST finish read [21:18:39]Found Content-Length = 673 [21:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 8.180, "sum" : 600.41, "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" ] } } [21:18:39]execute_script... [21:18: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)281159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 8.180, "sum" : 600.41, "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" ] } } [21:18:39]POST & json_proto [21:18:39]process_json_proto [21:18:39]json parsed OK: [21:18:39]protocol is kg_v1.0 [21:18:39]action value=close_receipt [21:18:39]process_action close_receipt [21:18:39]cmd_close_receipt [21:18:39]MH_GetDate [21:18:39]Write to MH i2c: F0 00 00 D2 07 C8 [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: F0 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: F0 09 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: F0 09 00 D2 07 00 30 A9 8D 66 3C B9 F9 65 F0 [21:18:39]GetLastDocTimeStamp 1720559823 [21:18:39]current date 1720559920 [21:18:39]FM_GetShiftState [21:18:39]SAM_PROTO_GetShiftState [21:18:39]wFMCommunicate request_size=4 [21:18:39]MH_SAM_APDU [21:18:39]CAPDU: 80 13 01 00 [21:18:39]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:39]Read from MH i2c: E2 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 0E 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 65 [21:18:39]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:18:39]wFMCommunicate OK [21:18:39]SAM_PROTO_GetShiftState done [21:18:39]FM_GetShiftState done [21:18:39]opened in 1720484494 [21:18:39]opened+sec_in_day 1720570894 [21:18:39]quantity*price = 60041 [21:18:39]sum+1 = 60042 [21:18:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 335 09.07.2024 21:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27293 ФПД: 104198903631858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211840&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27293&fm=104198903631858&tin=00112200510239®Number=0000000000151136&sum=60000 [21:18:43]StoreToDocumentArchive [21:18:43]shift 114 fd 27293 [21:18:43]save to /storage/0114/doc_00027293 [21:18:43]save last doc name /storage/0114/doc_00027293 to /storage/kkm_last_doc_name [21:18:43]save OK [21:18:43]Clear old archive folders... [21:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:18:43]tlvbuf is 005EBD60 [21:18:43]SAM_PROTO_ClearQueue [21:18:43]wFMCommunicate request_size=4 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 09 00 00 [21:18:43]Write to MH i2c: E2 08 00 E0 07 80 09 00 00 00 00 00 00 59 [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [21:18:43]RAPDU: 90 00 [21:18:43]wFMCommunicate OK [21:18:43]SAM_PROTO_ClearQueue done [21:18:43]KKMCreateOFDPacket [21:18:43]OFDProtocolAddRootSTLVToBuf [21:18:43]FM_MakeSignedData [21:18:43]FM_MakeSignedData [21:18:43]SAM_PROTO_SignData [21:18:43]wFMCommunicate request_size=4 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 0D 01 02 [21:18:43]Write to MH i2c: E2 08 00 E1 07 80 0D 01 02 00 00 00 00 61 [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 E1 07 00 90 00 5C [21:18:43]RAPDU: 90 00 [21:18:43]wFMCommunicate OK [21:18:43]wFMCommunicate request_size=255 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 89 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 ConnectInit Can't take IP for lk.salyk.kg [21:18:44]00 CommunicateWithHost connect error [21:18:44]F2 CommunicateWithHost err = -1 [21:18:44]03 01 OFD Sender: Server communicate error [21:18:44]00 01 F3 03 06 00 E8 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 4F 01 00 00 F4 03 04 00 30 A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9D 6A 00 00 35 04 06 00 5E C4 B2 A3 [21:18:44]Write to MH i2c: E2 02 01 E2 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 89 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 E8 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 4F 01 00 00 F4 03 04 00 30 A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9D 6A 00 00 35 04 06 00 5E C4 B2 A3 00 00 BD [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:45]Read from MH i2c: E2 03 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [21:18:45]RAPDU: 90 00 [21:18:45]wFMCommunicate OK [21:18:45]wFMCommunicate request_size=7 [21:18:45]MH_SAM_APDU [21:18:45]CAPDU: 80 0D 02 02 02 0F F2 [21:18:45]Write to MH i2c: E2 0A 00 E3 07 80 0D 02 02 02 00 0F F2 00 00 69 [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 03 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [21:18:45]RAPDU: 90 00 [21:18:45]wFMCommunicate OK [21:18:45]wFMCommunicate request_size=4 [21:18:45]MH_SAM_APDU [21:18:45]CAPDU: 80 0D 03 02 [21:18:45]Write to MH i2c: E2 08 00 E4 07 80 0D 03 02 00 00 00 00 66 [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 0B 00 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: E2 0B 00 E4 07 00 B4 BC 5E DE 0B 70 7B DE 90 00 E7 [21:18:46]RAPDU: B4 BC 5E DE 0B 70 7B DE 90 00 [21:18:46]wFMCommunicate OK [21:18:46]SAM_PROTO_SignData done [21:18:46]FM_MakeSignedData done [21:18:46]CreateOFDProtocolMessage [21:18:46]wFMCommunicate request_size=4 [21:18:46]MH_SAM_APDU [21:18:46]CAPDU: 80 11 00 00 [21:18:46]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [21:18:46]Write i2c OK [21:18:46]MH_I2C_Read... [21:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:46]Read from MH i2c: E2 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: E2 17 00 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 BD [21:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:18:46]wFMCommunicate OK [21:18:46]CreateOFDProtocolMessage done [21:18:46]OFDSenderStorePacket 27293 [21:18:46]StoreOFDPacket docnum=27293 [21:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0C 01 00 00 3C 7C 04 01 18 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 89 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 E8 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 4F 01 00 00 F4 03 04 00 30 A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9D 6A 00 00 35 04 06 00 5E C4 B2 A3 0F F2 B4 BC 5E DE 0B 70 7B DE [21:18:46]CheckFolder [21:18:46]dirname=/storage/ofd_packets [21:18:46]CheckFolder done [21:18:46]ProducePacketName [21:18:46]name=ofd_packets/00027293 [21:18:46]NVStorageSaveData ofd_packets/00027293 [21:18:46]File name is /storage/ofd_packets/00027293 [21:18:46]Write 298 bytes [21:18:46]NVStorageSaveData done [21:18:46]OFDSenderStorePacket done [21:18:46]KKMCreateOFDPacket done [21:18:46]NVStorageSaveData kkm_last_timestamp [21:18:46]File name is /storage/kkm_last_timestamp [21:18:46]Write 4 bytes [21:18:46]NVStorageSaveData done [21:18:46]ExternCall_PrintAddStr [21:18:46]wPrintStart [21:18:46]Write to MH i2c: 01 00 00 E6 07 ED [21:18:46]Write i2c OK [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: 01 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: 01 07 00 [21:18:46]MH_I2C_Read... [21:18:46]OFD Sender: Processing packet 27177 [packets to send 129, broken 13] [21:18:46]ProducePacketName [21:18:46]name=ofd_packets/00027177 [21:18:46]OFD Sender: To server: pG, [21:18:46]CommunicateWithHost lk.salyk.kg:30040 [21:18:46]ConnectInit lk.salyk.kg [21:18:46]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FF 0F 02 [21:18:46]RasterBufferAndPrint [21:18:46]line Счет N : (1)281159 [21:18:46]line ИНН: 00112200510239 [21:18:46]line Контрольно-Кассовый Чек [21:18:46]line ПРОДАЖА [21:18:46]line ТРК (МРК, ГНК) : 9 [21:18:46]line Товар: 2710194210 [21:18:46]line ДТ-К-5 [21:18:46]line 8.180 * 73.40 [21:18:46]line = 600.41 [21:18:46]line НДС 12% НСП 1% [21:18:46]line > о реализуемом товаре [21:18:46]line ОКРУГЛЕНИЕ: -0.41 [21:18:46]line ИТОГО: 600.00 [21:18:46]line Внесено: 600.00 [21:18:46]line СДАЧА: 0.00 [21:18:46]line НСП 1% : 5.31 [21:18:46]line НДС 12% : 63.76 [21:18:46]line Наличными: 600.00 [21:18:46]line Безнал.: 0.00 [21:18:46]line Место: АЗС № 50 "Bishkek Petroleum" [21:18:46]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:18:46]line СНО: Общий режим [21:18:46]line Чек 335 09.07.2024 21:18 [21:18:46]line Смена: 114 ФФД: 1.0 [21:18:46]line ЗНМ: 0300000229 [21:18:46]line РНМ: 0000000000151136 [21:18:46]line Версия ККМ: v1.0 [21:18:46]line ФМ: 0000000000959418 [21:18:46]line ФД: 27293 [21:18:46]line ФПД: 104198903631858 [21:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211840&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27293&fm=104198903631858&tin=00112200510239®Number=0000000000151136&sum=60000 [21:18:46]written 0, free lines is 4095 [21:18:47]Write to MH i2c: 01 00 00 11 08 19 [21:18:47]Write i2c OK [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: 01 [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: 01 07 00 [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 B1 0C DD [21:18:47]RasterBufferAndPrint [21:18:47]line [21:18:47]line [21:18:47]line [21:18:47]line [21:18:47]line [21:18:47]written 0, free lines is 3384 [21:18:47]MH_Cut [21:18:47]Write to MH i2c: D1 01 00 18 08 01 F2 [21:18:47]Write i2c OK [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: D1 [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: D1 01 00 [21:18:47]MH_I2C_Read... [21:18:47]Read from MH i2c: D1 01 00 18 08 00 F1 [21:18:47]Write to MH i2c: 01 00 00 19 08 21 [21:18:47]Write i2c OK [21:18:47]MH_I2C_Read... [21:18:48]*** Cut start [21:18:48]*** Partial cut [21:18:48]*** CUTSNS_PIN = 1 [21:18:48]*** CUTSNS_PIN = 0 [21:18:48]*** Brake cut motor [21:18:48]Read from MH i2c: 01 [21:18:48]MH_I2C_Read... [21:18:48]*** Stop cut motor [21:18:48]*** Cut end [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 19 08 00 00 00 00 00 FF 0F 36 [21:18:48]process_action close_receipt done [21:18:48]requested_data is exist [21:18:48]produce_requested_data [21:18:48]requested_item fm.sn is exist - process it [21:18:48]wFMCommunicate request_size=4 [21:18:48]MH_SAM_APDU [21:18:48]CAPDU: 80 11 00 00 [21:18:48]Write to MH i2c: E2 08 00 1A 08 80 11 00 00 00 00 00 00 9C [21:18:48]Write i2c OK [21:18:48]MH_I2C_Read... [21:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:48]Read from MH i2c: E2 [21:18:48]MH_I2C_Read... [21:18:48]Read from MH i2c: E2 17 00 [21:18:48]MH_I2C_Read... [21:18:48]Read from MH i2c: E2 17 00 1A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 F3 [21:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:18:49]wFMCommunicate OK [21:18:49]requested_item fd.num is exist - process it [21:18:49]SAM_PROTO_GetFieldsCounters [21:18:49]wFMCommunicate request_size=4 [21:18:49]MH_SAM_APDU [21:18:49]CAPDU: 80 13 00 00 [21:18:49]Write to MH i2c: E2 08 00 1B 08 80 13 00 00 00 00 00 00 9F [21:18:49]Write i2c OK [21:18:49]MH_I2C_Read... [21:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:49]Read from MH i2c: E2 [21:18:49]MH_I2C_Read... [21:18:49]Read from MH i2c: E2 62 00 [21:18:49]MH_I2C_Read... [21:18:49]Read from MH i2c: E2 62 00 1B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9D 6A 00 00 0E 04 04 00 72 00 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 25 [21:18:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9D 6A 00 00 0E 04 04 00 72 00 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 [21:18:49]wFMCommunicate OK [21:18:49]SAM_PROTO_GetFieldsCounters done [21:18:49]requested_item shift.num is exist - process it [21:18:49]requested_item shift.opened is exist - process it [21:18:49]req_shift_opened [21:18:49]FM_GetShiftState [21:18:49]SAM_PROTO_GetShiftState [21:18:49]wFMCommunicate request_size=4 [21:18:49]MH_SAM_APDU [21:18:49]CAPDU: 80 13 01 00 [21:18:49]Write to MH i2c: E2 08 00 1C 08 80 13 01 00 00 00 00 00 A1 [21:18:50]Write i2c OK [21:18:50]MH_I2C_Read... [21:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:50]Read from MH i2c: E2 [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: E2 0E 00 [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: E2 0E 00 1C 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 AF [21:18:50]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:18:50]wFMCommunicate OK [21:18:50]SAM_PROTO_GetShiftState done [21:18:50]FM_GetShiftState done [21:18:50]req_shift_opened done [21:18:50]requested_item shift.open_date is exist - process it [21:18:50]req_shift_open_date [21:18:50]req_shift_open_date done [21:18:50]produce_requested_data done [21:18:50]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27293,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:18:50]process_action_free close_receipt [21:18:50]json_value_free [21:18:50]json_value_free done [21:18:50]process_json_proto returns [21:18:50]Send response to host [21:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27293,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:18:50]free response buf [21:18:50]execute_script done [21:18:50]execute_script returns [21:18:50]free content buf [21:18:50]Sock 12.Close socket [21:18:50]Sock 12.Thread stoped [21:18:50]accept exits with 11 [21:18:50]New connection [21:18:50]New thread 3066473828 created [21:18:50]Thread 3066617188 joined [21:18:50]Waiting for new connection... [21:18:50] Sock 11.Parse request [21:18:50]Sock 11.Check first char [21:18:50]Sock 11.First char is OK [21:18:50]request: POST /json_proto HTTP/1.0 [21:18:50]Method: POST [21:18:50]URL: /json_proto [21:18:50]Method is POST - this is cgi request [21:18:50]url: /json_proto [21:18:50]query_string will be loaded in cgi processing [21:18:50]execute_cgi json_proto POST (null) [21:18:50]execute_cgi path=json_proto method=POST [21:18:50]POST find Content-Length [21:18:50]Host: 10.101.50.102:8080 [21:18:50]Content-Length: 676 [21:18:50]Content-Type: application/json [21:18:50] [21:18:50]POST finish read [21:18:50]Found Content-Length = 676 [21:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "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" ] } } [21:18:50]execute_script... [21:18: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)281160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "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" ] } } [21:18:50]POST & json_proto [21:18:50]process_json_proto [21:18:50]json parsed OK: [21:18:50]protocol is kg_v1.0 [21:18:50]action value=close_receipt [21:18:50]process_action close_receipt [21:18:50]cmd_close_receipt [21:18:50]MH_GetDate [21:18:50]Write to MH i2c: F0 00 00 1D 08 14 [21:18:50]Write i2c OK [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: F0 [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: F0 09 00 [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: F0 09 00 1D 08 00 3C A9 8D 66 3C B9 F9 65 48 [21:18:50]GetLastDocTimeStamp 1720559920 [21:18:50]current date 1720559932 [21:18:50]FM_GetShiftState [21:18:50]SAM_PROTO_GetShiftState [21:18:50]wFMCommunicate request_size=4 [21:18:50]MH_SAM_APDU [21:18:50]CAPDU: 80 13 01 00 [21:18:50]Write to MH i2c: E2 08 00 1E 08 80 13 01 00 00 00 00 00 A3 [21:18:50]Write i2c OK [21:18:50]MH_I2C_Read... [21:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:50]Read from MH i2c: E2 [21:18:50]MH_I2C_Read... [21:18:50]Read from MH i2c: E2 0E 00 [21:18:51]MH_I2C_Read... [21:18:51]Read from MH i2c: E2 0E 00 1E 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 B1 [21:18:51]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:18:51]wFMCommunicate OK [21:18:51]SAM_PROTO_GetShiftState done [21:18:51]FM_GetShiftState done [21:18:51]opened in 1720484494 [21:18:51]opened+sec_in_day 1720570894 [21:18:51]quantity*price = 50010 [21:18:51]sum+1 = 50012 [21:18: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 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 336 09.07.2024 21:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27294 ФПД: 81549522960055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211852&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27294&fm=81549522960055&tin=00112200510239®Number=0000000000151136&sum=50000 [21:18:55]StoreToDocumentArchive [21:18:55]shift 114 fd 27294 [21:18:55]save to /storage/0114/doc_00027294 [21:18:55]save last doc name /storage/0114/doc_00027294 to /storage/kkm_last_doc_name [21:18:55]save OK [21:18:55]Clear old archive folders... [21:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:55]tlvbuf is 005F4620 [21:18:55]SAM_PROTO_ClearQueue [21:18:55]wFMCommunicate request_size=4 [21:18:55]MH_SAM_APDU [21:18:55]CAPDU: 80 09 00 00 [21:18:55]Write to MH i2c: E2 08 00 2B 08 80 09 00 00 00 00 00 00 A5 [21:18:55]Write i2c OK [21:18:55]MH_I2C_Read... [21:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:55]Read from MH i2c: E2 [21:18:55]MH_I2C_Read... [21:18:55]Read from MH i2c: E2 03 00 [21:18:55]MH_I2C_Read... [21:18:55]Read from MH i2c: E2 03 00 2B 08 00 90 00 A7 [21:18:55]RAPDU: 90 00 [21:18:55]wFMCommunicate OK [21:18:55]SAM_PROTO_ClearQueue done [21:18:55]KKMCreateOFDPacket [21:18:55]OFDProtocolAddRootSTLVToBuf [21:18:55]FM_MakeSignedData [21:18:55]FM_MakeSignedData [21:18:55]SAM_PROTO_SignData [21:18:55]wFMCommunicate request_size=4 [21:18:55]MH_SAM_APDU [21:18:55]CAPDU: 80 0D 01 02 [21:18:55]Write to MH i2c: E2 08 00 2C 08 80 0D 01 02 00 00 00 00 AD [21:18:55]Write i2c OK [21:18:55]MH_I2C_Read... [21:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:55]Read from MH i2c: E2 [21:18:55]MH_I2C_Read... [21:18:55]Read from MH i2c: E2 03 00 [21:18:55]MH_I2C_Read... [21:18:55]Read from MH i2c: E2 03 00 2C 08 00 90 00 A8 [21:18:55]RAPDU: 90 00 [21:18:55]wFMCommunicate OK [21:18:55]wFMCommunicate request_size=255 [21:18:55]MH_SAM_APDU [21:18: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 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 50 01 00 00 F4 03 04 00 3C A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9E 6A 00 00 35 04 06 00 4A [21:18:56]Write to MH i2c: E2 02 01 2D 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 OFD Sender: Processing packet 27177 [packets to send 129, broken 13] [21:18:56]33 ProducePacketName [21:18:56]30 name=ofd_packets/00027177 [21:18:56]06 04 0C 00 D0 OFD Sender: To server: pG, [21:18:56]90 CommunicateWithHost lk.salyk.kg:30040 [21:18:56]D0 ConnectInit lk.salyk.kg [21:18:56]B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 50 01 00 00 F4 03 04 00 3C A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9E 6A 00 00 35 04 06 00 4A 00 00 F9 [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:57]Read from MH i2c: E2 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: E2 03 00 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: E2 03 00 2D 08 00 90 00 A9 [21:18:57]RAPDU: 90 00 [21:18:57]wFMCommunicate OK [21:18:57]wFMCommunicate request_size=10 [21:18:57]MH_SAM_APDU [21:18:57]CAPDU: 80 0D 02 02 05 2B 3A 58 FE B7 [21:18:57]Write to MH i2c: E2 0D 00 2E 08 80 0D 02 02 05 00 2B 3A 58 FE B7 00 00 2C [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:57]Read from MH i2c: E2 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: E2 03 00 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [21:18:57]RAPDU: 90 00 [21:18:58]wFMCommunicate OK [21:18:58]wFMCommunicate request_size=4 [21:18:58]MH_SAM_APDU [21:18:58]CAPDU: 80 0D 03 02 [21:18:58]Write to MH i2c: E2 08 00 2F 08 80 0D 03 02 00 00 00 00 B2 [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:58]Read from MH i2c: E2 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 0B 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 0B 00 2F 08 00 45 2D 84 DE 31 08 6A 19 90 00 43 [21:18:58]RAPDU: 45 2D 84 DE 31 08 6A 19 90 00 [21:18:58]wFMCommunicate OK [21:18:58]SAM_PROTO_SignData done [21:18:58]FM_MakeSignedData done [21:18:58]CreateOFDProtocolMessage [21:18:58]wFMCommunicate request_size=4 [21:18:58]MH_SAM_APDU [21:18:58]CAPDU: 80 11 00 00 [21:18:58]Write to MH i2c: E2 08 00 30 08 80 11 00 00 00 00 00 00 B2 [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:58]Read from MH i2c: E2 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 17 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 17 00 30 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 09 [21:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:18:58]wFMCommunicate OK [21:18:58]CreateOFDProtocolMessage done [21:18:58]OFDSenderStorePacket 27294 [21:18:58]StoreOFDPacket docnum=27294 [21:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 48 D6 07 01 D1 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 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 50 01 00 00 F4 03 04 00 3C A9 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9E 6A 00 00 35 04 06 00 4A 2B 3A 58 FE B7 45 2D 84 DE 31 08 6A 19 [21:18:58]CheckFolder [21:18:58]dirname=/storage/ofd_packets [21:18:58]CheckFolder done [21:18:58]ProducePacketName [21:18:58]name=ofd_packets/00027294 [21:18:58]NVStorageSaveData ofd_packets/00027294 [21:18:58]File name is /storage/ofd_packets/00027294 [21:18:58]Write 301 bytes [21:18:58]NVStorageSaveData done [21:18:58]OFDSenderStorePacket done [21:18:58]KKMCreateOFDPacket done [21:18:58]NVStorageSaveData kkm_last_timestamp [21:18:58]File name is /storage/kkm_last_timestamp [21:18:58]Write 4 bytes [21:18:58]NVStorageSaveData done [21:18:58]ExternCall_PrintAddStr [21:18:58]wPrintStart [21:18:58]Write to MH i2c: 01 00 00 31 08 39 [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 31 08 00 00 00 00 00 FF 0F 4E [21:18:58]RasterBufferAndPrint [21:18:58]line Счет N : (1)281160 [21:18:58]line ИНН: 00112200510239 [21:18:58]line Контрольно-Кассовый Чек [21:18:58]line ПРОДАЖА [21:18:58]line ТРК (МРК, ГНК) : 2 [21:18:58]line Товар: 2710124130 [21:18:58]line Аи-92-К-5 [21:18:58]line 7.420 * 67.40 [21:18:58]line = 500.11 [21:18:58]line НДС 12% НСП 1% [21:18:58]line > о реализуемом товаре [21:18:58]line ОКРУГЛЕНИЕ: -0.11 [21:18:58]line ИТОГО: 500.00 [21:18:58]line Внесено: 500.00 [21:18:58]line СДАЧА: 0.00 [21:18:58]line НСП 1% : 4.43 [21:18:58]line НДС 12% : 53.11 [21:18:58]line Наличными: 500.00 [21:18:58]line Безнал.: 0.00 [21:18:58]line Место: АЗС № 50 "Bishkek Petroleum" [21:18:58]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:18:58]line СНО: Общий режим [21:18:58]line Чек 336 09.07.2024 21:18 [21:18:58]line Смена: 114 ФФД: 1.0 [21:18:58]line ЗНМ: 0300000229 [21:18:58]line РНМ: 0000000000151136 [21:18:58]line Версия ККМ: v1.0 [21:18:58]line ФМ: 0000000000959418 [21:18:58]line ФД: 27294 [21:18:58]line ФПД: 81549522960055 [21:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T211852&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27294&fm=81549522960055&tin=00112200510239®Number=0000000000151136&sum=50000 [21:18:58]written 0, free lines is 4095 [21:18:59]Write to MH i2c: 01 00 00 5C 08 64 [21:18:59]Write i2c OK [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: 01 [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: 01 07 00 [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 B3 0C 2A [21:18:59]RasterBufferAndPrint [21:18:59]line [21:18:59]line [21:18:59]line [21:18:59]line [21:18:59]line [21:18:59]written 0, free lines is 3391 [21:18:59]MH_Cut [21:18:59]Write to MH i2c: D1 01 00 63 08 01 3D [21:18:59]Write i2c OK [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: D1 [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: D1 01 00 [21:18:59]MH_I2C_Read... [21:18:59]Read from MH i2c: D1 01 00 63 08 00 3C [21:18:59]Write to MH i2c: 01 00 00 64 08 6C [21:18:59]Write i2c OK [21:18:59]MH_I2C_Read... [21:19:00]*** Cut start [21:19:00]*** Partial cut [21:19:00]*** CUTSNS_PIN = 1 [21:19:00]*** CUTSNS_PIN = 0 [21:19:00]*** Brake cut motor [21:19:00]Read from MH i2c: 01 [21:19:00]MH_I2C_Read... [21:19:00]*** Stop cut motor [21:19:00]*** Cut end [21:19:00]Read from MH i2c: 01 07 00 [21:19:00]MH_I2C_Read... [21:19:00]Read from MH i2c: 01 07 00 64 08 00 00 00 00 00 FF 0F 81 [21:19:00]process_action close_receipt done [21:19:00]requested_data is exist [21:19:00]produce_requested_data [21:19:00]requested_item fm.sn is exist - process it [21:19:00]wFMCommunicate request_size=4 [21:19:00]MH_SAM_APDU [21:19:00]CAPDU: 80 11 00 00 [21:19:00]Write to MH i2c: E2 08 00 65 08 80 11 00 00 00 00 00 00 E7 [21:19:00]Write i2c OK [21:19:00]MH_I2C_Read... [21:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:01]Read from MH i2c: E2 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 17 00 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 17 00 65 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 3E [21:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:19:01]wFMCommunicate OK [21:19:01]requested_item fd.num is exist - process it [21:19:01]SAM_PROTO_GetFieldsCounters [21:19:01]wFMCommunicate request_size=4 [21:19:01]MH_SAM_APDU [21:19:01]CAPDU: 80 13 00 00 [21:19:01]Write to MH i2c: E2 08 00 66 08 80 13 00 00 00 00 00 00 EA [21:19:01]Write i2c OK [21:19:01]MH_I2C_Read... [21:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:01]Read from MH i2c: E2 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 62 00 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 62 00 66 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9E 6A 00 00 0E 04 04 00 72 00 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 74 [21:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 ConnectInit Can't take IP for lk.salyk.kg [21:19:01]30 CommunicateWithHost connect error [21:19:01]CommunicateWithHost err = -1 [21:19:01]OFD Sender: Server communicate error [21:19:01]30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9E 6A 00 00 0E 04 OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:02]04 ProducePacketName [21:19:02]00 name=ofd_packets/00027177 [21:19:02]72 00 00 00 12 OFD Sender: To server: pG, [21:19:02]04 CommunicateWithHost lk.salyk.kg:30040 [21:19:02]04 ConnectInit lk.salyk.kg [21:19:02]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 [21:19:02]wFMCommunicate OK [21:19:02]SAM_PROTO_GetFieldsCounters done [21:19:02]requested_item shift.num is exist - process it [21:19:02]requested_item shift.opened is exist - process it [21:19:02]req_shift_opened [21:19:02]FM_GetShiftState [21:19:02]SAM_PROTO_GetShiftState [21:19:02]wFMCommunicate request_size=4 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 13 01 00 [21:19:02]Write to MH i2c: E2 08 00 67 08 80 13 01 00 00 00 00 00 EC [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 0E 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 0E 00 67 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 FA [21:19:02]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:19:02]wFMCommunicate OK [21:19:02]SAM_PROTO_GetShiftState done [21:19:02]FM_GetShiftState done [21:19:02]req_shift_opened done [21:19:02]requested_item shift.open_date is exist - process it [21:19:02]req_shift_open_date [21:19:02]req_shift_open_date done [21:19:02]produce_requested_data done [21:19:02]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27294,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:19:02]process_action_free close_receipt [21:19:02]json_value_free [21:19:02]json_value_free done [21:19:02]process_json_proto returns [21:19:02]Send response to host [21:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27294,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:19:02]free response buf [21:19:02]execute_script done [21:19:02]execute_script returns [21:19:02]free content buf [21:19:02]Sock 11.Close socket [21:19:02]Sock 11.Thread stoped [21:19:07]ConnectInit Can't take IP for lk.salyk.kg [21:19:07]CommunicateWithHost connect error [21:19:07]CommunicateWithHost err = -1 [21:19:07]OFD Sender: Server communicate error [21:19:12]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:12]ProducePacketName [21:19:12]name=ofd_packets/00027177 [21:19:12]OFD Sender: To server: pG, [21:19:12]CommunicateWithHost lk.salyk.kg:30040 [21:19:12]ConnectInit lk.salyk.kg [21:19:17]ConnectInit Can't take IP for lk.salyk.kg [21:19:17]CommunicateWithHost connect error [21:19:17]CommunicateWithHost err = -1 [21:19:17]OFD Sender: Server communicate error [21:19:22]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:22]ProducePacketName [21:19:22]name=ofd_packets/00027177 [21:19:22]OFD Sender: To server: pG, [21:19:22]CommunicateWithHost lk.salyk.kg:30040 [21:19:22]ConnectInit lk.salyk.kg [21:19:27]ConnectInit Can't take IP for lk.salyk.kg [21:19:27]CommunicateWithHost connect error [21:19:27]CommunicateWithHost err = -1 [21:19:27]OFD Sender: Server communicate error [21:19:32]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:32]ProducePacketName [21:19:32]name=ofd_packets/00027177 [21:19:32]OFD Sender: To server: pG, [21:19:32]CommunicateWithHost lk.salyk.kg:30040 [21:19:32]ConnectInit lk.salyk.kg [21:19:37]ConnectInit Can't take IP for lk.salyk.kg [21:19:37]CommunicateWithHost connect error [21:19:37]CommunicateWithHost err = -1 [21:19:37]OFD Sender: Server communicate error [21:19:42]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00027177 [21:19:42]OFD Sender: To server: pG, [21:19:42]CommunicateWithHost lk.salyk.kg:30040 [21:19:42]ConnectInit lk.salyk.kg [21:19:47]ConnectInit Can't take IP for lk.salyk.kg [21:19:47]CommunicateWithHost connect error [21:19:47]CommunicateWithHost err = -1 [21:19:47]OFD Sender: Server communicate error [21:19:52]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:19:52]ProducePacketName [21:19:52]name=ofd_packets/00027177 [21:19:52]OFD Sender: To server: pG, [21:19:52]CommunicateWithHost lk.salyk.kg:30040 [21:19:52]ConnectInit lk.salyk.kg [21:19:57]ConnectInit Can't take IP for lk.salyk.kg [21:19:57]CommunicateWithHost connect error [21:19:57]CommunicateWithHost err = -1 [21:19:57]OFD Sender: Server communicate error [21:20:02]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:02]ProducePacketName [21:20:02]name=ofd_packets/00027177 [21:20:02]OFD Sender: To server: pG, [21:20:02]CommunicateWithHost lk.salyk.kg:30040 [21:20:02]ConnectInit lk.salyk.kg [21:20:07]ConnectInit Can't take IP for lk.salyk.kg [21:20:07]CommunicateWithHost connect error [21:20:07]CommunicateWithHost err = -1 [21:20:07]OFD Sender: Server communicate error [21:20:12]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:12]ProducePacketName [21:20:12]name=ofd_packets/00027177 [21:20:12]OFD Sender: To server: pG, [21:20:12]CommunicateWithHost lk.salyk.kg:30040 [21:20:12]ConnectInit lk.salyk.kg [21:20:17]ConnectInit Can't take IP for lk.salyk.kg [21:20:17]CommunicateWithHost connect error [21:20:17]CommunicateWithHost err = -1 [21:20:17]OFD Sender: Server communicate error [21:20:22]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:22]ProducePacketName [21:20:22]name=ofd_packets/00027177 [21:20:22]OFD Sender: To server: pG, [21:20:22]CommunicateWithHost lk.salyk.kg:30040 [21:20:22]ConnectInit lk.salyk.kg [21:20:27]ConnectInit Can't take IP for lk.salyk.kg [21:20:27]CommunicateWithHost connect error [21:20:27]CommunicateWithHost err = -1 [21:20:27]OFD Sender: Server communicate error [21:20:32]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:32]ProducePacketName [21:20:32]name=ofd_packets/00027177 [21:20:32]OFD Sender: To server: pG, [21:20:32]CommunicateWithHost lk.salyk.kg:30040 [21:20:32]ConnectInit lk.salyk.kg [21:20:37]ConnectInit Can't take IP for lk.salyk.kg [21:20:37]CommunicateWithHost connect error [21:20:37]CommunicateWithHost err = -1 [21:20:37]OFD Sender: Server communicate error [21:20:42]ConnectInit Can't connect to host [21:20:42]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:42]ProducePacketName [21:20:42]name=ofd_packets/00027177 [21:20:42]OFD Sender: To server: pG, [21:20:42]CommunicateWithHost lk.salyk.kg:30040 [21:20:42]ConnectInit lk.salyk.kg [21:20:47]ConnectInit Can't take IP for lk.salyk.kg [21:20:47]CommunicateWithHost connect error [21:20:47]CommunicateWithHost err = -1 [21:20:47]OFD Sender: Server communicate error [21:20:52]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:20:52]ProducePacketName [21:20:52]name=ofd_packets/00027177 [21:20:52]OFD Sender: To server: pG, [21:20:52]CommunicateWithHost lk.salyk.kg:30040 [21:20:52]ConnectInit lk.salyk.kg [21:20:57]ConnectInit Can't take IP for lk.salyk.kg [21:20:57]CommunicateWithHost connect error [21:20:57]CommunicateWithHost err = -1 [21:20:57]OFD Sender: Server communicate error [21:21:02]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:02]ProducePacketName [21:21:02]name=ofd_packets/00027177 [21:21:02]OFD Sender: To server: pG, [21:21:02]CommunicateWithHost lk.salyk.kg:30040 [21:21:02]ConnectInit lk.salyk.kg [21:21:07]ConnectInit Can't take IP for lk.salyk.kg [21:21:07]CommunicateWithHost connect error [21:21:07]CommunicateWithHost err = -1 [21:21:07]OFD Sender: Server communicate error [21:21:12]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:12]ProducePacketName [21:21:12]name=ofd_packets/00027177 [21:21:12]OFD Sender: To server: pG, [21:21:12]CommunicateWithHost lk.salyk.kg:30040 [21:21:12]ConnectInit lk.salyk.kg [21:21:17]ConnectInit Can't take IP for lk.salyk.kg [21:21:17]CommunicateWithHost connect error [21:21:17]CommunicateWithHost err = -1 [21:21:17]OFD Sender: Server communicate error [21:21:22]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:22]ProducePacketName [21:21:22]name=ofd_packets/00027177 [21:21:22]OFD Sender: To server: pG, [21:21:22]CommunicateWithHost lk.salyk.kg:30040 [21:21:22]ConnectInit lk.salyk.kg [21:21:27]ConnectInit Can't take IP for lk.salyk.kg [21:21:27]CommunicateWithHost connect error [21:21:27]CommunicateWithHost err = -1 [21:21:27]OFD Sender: Server communicate error [21:21:32]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:32]ProducePacketName [21:21:32]name=ofd_packets/00027177 [21:21:32]OFD Sender: To server: pG, [21:21:32]CommunicateWithHost lk.salyk.kg:30040 [21:21:32]ConnectInit lk.salyk.kg [21:21:37]ConnectInit Can't take IP for lk.salyk.kg [21:21:37]CommunicateWithHost connect error [21:21:37]CommunicateWithHost err = -1 [21:21:37]OFD Sender: Server communicate error [21:21:42]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:42]ProducePacketName [21:21:42]name=ofd_packets/00027177 [21:21:42]OFD Sender: To server: pG, [21:21:42]CommunicateWithHost lk.salyk.kg:30040 [21:21:42]ConnectInit lk.salyk.kg [21:21:47]ConnectInit Can't take IP for lk.salyk.kg [21:21:47]CommunicateWithHost connect error [21:21:47]CommunicateWithHost err = -1 [21:21:47]OFD Sender: Server communicate error [21:21:52]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:21:52]ProducePacketName [21:21:52]name=ofd_packets/00027177 [21:21:52]OFD Sender: To server: pG, [21:21:52]CommunicateWithHost lk.salyk.kg:30040 [21:21:52]ConnectInit lk.salyk.kg [21:21:57]ConnectInit Can't take IP for lk.salyk.kg [21:21:57]CommunicateWithHost connect error [21:21:57]CommunicateWithHost err = -1 [21:21:57]OFD Sender: Server communicate error [21:22:02]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:02]ProducePacketName [21:22:02]name=ofd_packets/00027177 [21:22:02]OFD Sender: To server: pG, [21:22:02]CommunicateWithHost lk.salyk.kg:30040 [21:22:02]ConnectInit lk.salyk.kg [21:22:07]ConnectInit Can't take IP for lk.salyk.kg [21:22:07]CommunicateWithHost connect error [21:22:07]CommunicateWithHost err = -1 [21:22:07]OFD Sender: Server communicate error [21:22:12]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:12]ProducePacketName [21:22:12]name=ofd_packets/00027177 [21:22:12]OFD Sender: To server: pG, [21:22:12]CommunicateWithHost lk.salyk.kg:30040 [21:22:12]ConnectInit lk.salyk.kg [21:22:17]ConnectInit Can't take IP for lk.salyk.kg [21:22:17]CommunicateWithHost connect error [21:22:17]CommunicateWithHost err = -1 [21:22:17]OFD Sender: Server communicate error [21:22:22]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:22]ProducePacketName [21:22:22]name=ofd_packets/00027177 [21:22:22]OFD Sender: To server: pG, [21:22:22]CommunicateWithHost lk.salyk.kg:30040 [21:22:22]ConnectInit lk.salyk.kg [21:22:27]ConnectInit Can't take IP for lk.salyk.kg [21:22:27]CommunicateWithHost connect error [21:22:27]CommunicateWithHost err = -1 [21:22:27]OFD Sender: Server communicate error [21:22:32]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:32]ProducePacketName [21:22:32]name=ofd_packets/00027177 [21:22:32]OFD Sender: To server: pG, [21:22:32]CommunicateWithHost lk.salyk.kg:30040 [21:22:32]ConnectInit lk.salyk.kg [21:22:38]ConnectInit Can't take IP for lk.salyk.kg [21:22:38]CommunicateWithHost connect error [21:22:38]CommunicateWithHost err = -1 [21:22:38]OFD Sender: Server communicate error [21:22:43]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:43]ProducePacketName [21:22:43]name=ofd_packets/00027177 [21:22:43]OFD Sender: To server: pG, [21:22:43]CommunicateWithHost lk.salyk.kg:30040 [21:22:43]ConnectInit lk.salyk.kg [21:22:48]ConnectInit Can't take IP for lk.salyk.kg [21:22:48]CommunicateWithHost connect error [21:22:48]CommunicateWithHost err = -1 [21:22:48]OFD Sender: Server communicate error [21:22:53]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:22:53]ProducePacketName [21:22:53]name=ofd_packets/00027177 [21:22:53]OFD Sender: To server: pG, [21:22:53]CommunicateWithHost lk.salyk.kg:30040 [21:22:53]ConnectInit lk.salyk.kg [21:22:58]ConnectInit Can't take IP for lk.salyk.kg [21:22:58]CommunicateWithHost connect error [21:22:58]CommunicateWithHost err = -1 [21:22:58]OFD Sender: Server communicate error [21:23:00]ConnectInit Can't connect to host [21:23:03]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:03]ProducePacketName [21:23:03]name=ofd_packets/00027177 [21:23:03]OFD Sender: To server: pG, [21:23:03]CommunicateWithHost lk.salyk.kg:30040 [21:23:03]ConnectInit lk.salyk.kg [21:23:08]ConnectInit Can't take IP for lk.salyk.kg [21:23:08]CommunicateWithHost connect error [21:23:08]CommunicateWithHost err = -1 [21:23:08]OFD Sender: Server communicate error [21:23:13]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:13]ProducePacketName [21:23:13]name=ofd_packets/00027177 [21:23:13]OFD Sender: To server: pG, [21:23:13]CommunicateWithHost lk.salyk.kg:30040 [21:23:13]ConnectInit lk.salyk.kg [21:23:18]ConnectInit Can't take IP for lk.salyk.kg [21:23:18]CommunicateWithHost connect error [21:23:18]CommunicateWithHost err = -1 [21:23:18]OFD Sender: Server communicate error [21:23:23]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:23]ProducePacketName [21:23:23]name=ofd_packets/00027177 [21:23:23]OFD Sender: To server: pG, [21:23:23]CommunicateWithHost lk.salyk.kg:30040 [21:23:23]ConnectInit lk.salyk.kg [21:23:28]ConnectInit Can't take IP for lk.salyk.kg [21:23:28]CommunicateWithHost connect error [21:23:28]CommunicateWithHost err = -1 [21:23:28]OFD Sender: Server communicate error [21:23:33]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:33]ProducePacketName [21:23:33]name=ofd_packets/00027177 [21:23:33]OFD Sender: To server: pG, [21:23:33]CommunicateWithHost lk.salyk.kg:30040 [21:23:33]ConnectInit lk.salyk.kg [21:23:38]ConnectInit Can't take IP for lk.salyk.kg [21:23:38]CommunicateWithHost connect error [21:23:38]CommunicateWithHost err = -1 [21:23:38]OFD Sender: Server communicate error [21:23:43]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:43]ProducePacketName [21:23:43]name=ofd_packets/00027177 [21:23:43]OFD Sender: To server: pG, [21:23:43]CommunicateWithHost lk.salyk.kg:30040 [21:23:43]ConnectInit lk.salyk.kg [21:23:48]ConnectInit Can't take IP for lk.salyk.kg [21:23:48]CommunicateWithHost connect error [21:23:48]CommunicateWithHost err = -1 [21:23:48]OFD Sender: Server communicate error [21:23:53]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:23:53]ProducePacketName [21:23:53]name=ofd_packets/00027177 [21:23:53]OFD Sender: To server: pG, [21:23:53]CommunicateWithHost lk.salyk.kg:30040 [21:23:53]ConnectInit lk.salyk.kg [21:23:58]ConnectInit Can't take IP for lk.salyk.kg [21:23:58]CommunicateWithHost connect error [21:23:58]CommunicateWithHost err = -1 [21:23:58]OFD Sender: Server communicate error [21:24:03]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:03]ProducePacketName [21:24:03]name=ofd_packets/00027177 [21:24:03]OFD Sender: To server: pG, [21:24:03]CommunicateWithHost lk.salyk.kg:30040 [21:24:03]ConnectInit lk.salyk.kg [21:24:08]ConnectInit Can't take IP for lk.salyk.kg [21:24:08]CommunicateWithHost connect error [21:24:08]CommunicateWithHost err = -1 [21:24:08]OFD Sender: Server communicate error [21:24:13]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:13]ProducePacketName [21:24:13]name=ofd_packets/00027177 [21:24:13]OFD Sender: To server: pG, [21:24:13]CommunicateWithHost lk.salyk.kg:30040 [21:24:13]ConnectInit lk.salyk.kg [21:24:18]ConnectInit Can't take IP for lk.salyk.kg [21:24:18]CommunicateWithHost connect error [21:24:18]CommunicateWithHost err = -1 [21:24:18]OFD Sender: Server communicate error [21:24:23]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:23]ProducePacketName [21:24:23]name=ofd_packets/00027177 [21:24:23]OFD Sender: To server: pG, [21:24:23]CommunicateWithHost lk.salyk.kg:30040 [21:24:23]ConnectInit lk.salyk.kg [21:24:28]ConnectInit Can't take IP for lk.salyk.kg [21:24:28]CommunicateWithHost connect error [21:24:28]CommunicateWithHost err = -1 [21:24:28]OFD Sender: Server communicate error [21:24:33]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:33]ProducePacketName [21:24:33]name=ofd_packets/00027177 [21:24:33]OFD Sender: To server: pG, [21:24:33]CommunicateWithHost lk.salyk.kg:30040 [21:24:33]ConnectInit lk.salyk.kg [21:24:38]ConnectInit Can't take IP for lk.salyk.kg [21:24:38]CommunicateWithHost connect error [21:24:38]CommunicateWithHost err = -1 [21:24:38]OFD Sender: Server communicate error [21:24:43]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00027177 [21:24:43]OFD Sender: To server: pG, [21:24:43]CommunicateWithHost lk.salyk.kg:30040 [21:24:43]ConnectInit lk.salyk.kg [21:24:48]ConnectInit Can't take IP for lk.salyk.kg [21:24:48]CommunicateWithHost connect error [21:24:48]CommunicateWithHost err = -1 [21:24:48]OFD Sender: Server communicate error [21:24:53]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:24:53]ProducePacketName [21:24:53]name=ofd_packets/00027177 [21:24:53]OFD Sender: To server: pG, [21:24:53]CommunicateWithHost lk.salyk.kg:30040 [21:24:53]ConnectInit lk.salyk.kg [21:24:58]ConnectInit Can't take IP for lk.salyk.kg [21:24:58]CommunicateWithHost connect error [21:24:58]CommunicateWithHost err = -1 [21:24:58]OFD Sender: Server communicate error [21:25:03]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:03]ProducePacketName [21:25:03]name=ofd_packets/00027177 [21:25:03]OFD Sender: To server: pG, [21:25:03]CommunicateWithHost lk.salyk.kg:30040 [21:25:03]ConnectInit lk.salyk.kg [21:25:08]ConnectInit Can't take IP for lk.salyk.kg [21:25:08]CommunicateWithHost connect error [21:25:08]CommunicateWithHost err = -1 [21:25:08]OFD Sender: Server communicate error [21:25:13]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:13]ProducePacketName [21:25:13]name=ofd_packets/00027177 [21:25:13]OFD Sender: To server: pG, [21:25:13]CommunicateWithHost lk.salyk.kg:30040 [21:25:13]ConnectInit lk.salyk.kg [21:25:18]ConnectInit Can't connect to host [21:25:18]ConnectInit Can't take IP for lk.salyk.kg [21:25:18]CommunicateWithHost connect error [21:25:18]CommunicateWithHost err = -1 [21:25:18]OFD Sender: Server communicate error [21:25:23]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:23]ProducePacketName [21:25:23]name=ofd_packets/00027177 [21:25:23]OFD Sender: To server: pG, [21:25:23]CommunicateWithHost lk.salyk.kg:30040 [21:25:23]ConnectInit lk.salyk.kg [21:25:28]ConnectInit Can't take IP for lk.salyk.kg [21:25:28]CommunicateWithHost connect error [21:25:28]CommunicateWithHost err = -1 [21:25:28]OFD Sender: Server communicate error [21:25:33]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:33]ProducePacketName [21:25:33]name=ofd_packets/00027177 [21:25:33]OFD Sender: To server: pG, [21:25:33]CommunicateWithHost lk.salyk.kg:30040 [21:25:33]ConnectInit lk.salyk.kg [21:25:38]ConnectInit Can't take IP for lk.salyk.kg [21:25:38]CommunicateWithHost connect error [21:25:38]CommunicateWithHost err = -1 [21:25:38]OFD Sender: Server communicate error [21:25:43]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:43]ProducePacketName [21:25:43]name=ofd_packets/00027177 [21:25:43]OFD Sender: To server: pG, [21:25:43]CommunicateWithHost lk.salyk.kg:30040 [21:25:43]ConnectInit lk.salyk.kg [21:25:48]ConnectInit Can't take IP for lk.salyk.kg [21:25:48]CommunicateWithHost connect error [21:25:48]CommunicateWithHost err = -1 [21:25:48]OFD Sender: Server communicate error [21:25:53]OFD Sender: Processing packet 27177 [packets to send 130, broken 13] [21:25:53]ProducePacketName [21:25:53]name=ofd_packets/00027177 [21:25:53]OFD Sender: To server: pG, [21:25:53]CommunicateWithHost lk.salyk.kg:30040 [21:25:53]ConnectInit lk.salyk.kg [21:25:55]accept exits with 12 [21:25:55]New connection [21:25:55]New thread 3066617188 created [21:25:55]Thread 3066473828 joined [21:25:55]Waiting for new connection... [21:25:55] Sock 12.Parse request [21:25:55]Sock 12.Check first char [21:25:55]Sock 12.First char is OK [21:25:55]request: POST /json_proto HTTP/1.0 [21:25:55]Method: POST [21:25:55]URL: /json_proto [21:25:55]Method is POST - this is cgi request [21:25:55]url: /json_proto [21:25:55]query_string will be loaded in cgi processing [21:25:55]execute_cgi json_proto POST (null) [21:25:55]execute_cgi path=json_proto method=POST [21:25:55]POST find Content-Length [21:25:55]Host: 10.101.50.102:8080 [21:25:55]Content-Length: 676 [21:25:55]Content-Type: application/json [21:25:55] [21:25:55]POST finish read [21:25:55]Found Content-Length = 676 [21:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "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" ] } } [21:25:55]execute_script... [21:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "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" ] } } [21:25:55]POST & json_proto [21:25:55]process_json_proto [21:25:55]json parsed OK: [21:25:55]protocol is kg_v1.0 [21:25:55]action value=close_receipt [21:25:55]process_action close_receipt [21:25:55]cmd_close_receipt [21:25:55]MH_GetDate [21:25:55]Write to MH i2c: F0 00 00 68 08 5F [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 09 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 09 00 68 08 00 E4 AA 8D 66 3C B9 F9 65 3C [21:25:55]GetLastDocTimeStamp 1720559932 [21:25:55]current date 1720560356 [21:25:55]FM_GetShiftState [21:25:55]SAM_PROTO_GetShiftState [21:25:55]wFMCommunicate request_size=4 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 13 01 00 [21:25:55]Write to MH i2c: E2 08 00 69 08 80 13 01 00 00 00 00 00 EE [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 0E 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 0E 00 69 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 FC [21:25:55]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:25:55]wFMCommunicate OK [21:25:55]SAM_PROTO_GetShiftState done [21:25:55]FM_GetShiftState done [21:25:55]opened in 1720484494 [21:25:55]opened+sec_in_day 1720570894 [21:25:55]quantity*price = 50010 [21:25:55]sum+1 = 50012 [21:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 337 09.07.2024 21:25 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27295 ФПД: 64177608361112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T212556&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27295&fm=64177608361112&tin=00112200510239®Number=0000000000151136&sum=50000 [21:25:59]StoreToDocumentArchive [21:25:59]shift 114 fd 27295 [21:25:59]save to /storage/0114/doc_00027295 [21:25:59]save last doc name /storage/0114/doc_00027295 to /storage/kkm_last_doc_name [21:25:59]save OK [21:25:59]Clear old archive folders... [21:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:59]tlvbuf is 003B4260 [21:25:59]SAM_PROTO_ClearQueue [21:25:59]wFMCommunicate request_size=4 [21:25:59]MH_SAM_APDU [21:25:59]CAPDU: 80 09 00 00 [21:25:59]Write to MH i2c: E2 08 00 76 08 80 09 00 00 00 00 00 00 F0 [21:25:59]Write i2c OK [21:25:59]MH_I2C_Read... [21:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:59]Read from MH i2c: E2 [21:25:59]MH_I2C_Read... [21:25:59]Read from MH i2c: E2 03 00 [21:25:59]MH_I2C_Read... [21:25:59]Read from MH i2c: E2 03 00 76 08 00 90 00 F2 [21:25:59]RAPDU: 90 00 [21:25:59]wFMCommunicate OK [21:25:59]SAM_PROTO_ClearQueue done [21:25:59]KKMCreateOFDPacket [21:25:59]OFDProtocolAddRootSTLVToBuf [21:25:59]FM_MakeSignedData [21:25:59]FM_MakeSignedData [21:25:59]SAM_PROTO_SignData [21:25:59]wFMCommunicate request_size=4 [21:25:59]MH_SAM_APDU [21:25:59]CAPDU: 80 0D 01 02 [21:25:59]Write to MH i2c: E2 08 00 77 08 80 0D 01 02 00 00 00 00 F8 [21:25:59]Write i2c OK [21:25:59]MH_I2C_Read... [21:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:59]Read from MH i2c: E2 [21:25:59]MH_I2C_Read... [21:25:59]Read from MH i2c: E2 03 00 [21:25:59]MH_I2C_Read... [21:25:59]Read from MH i2c: E2 03 00 77 08 00 90 00 F3 [21:25:59]RAPDU: 90 00 [21:25:59]wFMCommunicate OK [21:25:59]wFMCommunicate request_size=255 [21:25:59]MH_SAM_APDU [21:25:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 51 01 00 00 F4 03 04 00 E4 AA 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9F 6A 00 00 35 04 06 00 3A [21:26:00]Write to MH i2c: E2 02 01 78 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 51 01 00 00 F4 03 04 00 E4 AA 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9F 6A 00 00 35 04 06 00 3A 00 00 DF [21:26:01]Write i2c OK [21:26:01]MH_I2C_Read... [21:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:01]Read from MH i2c: E2 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 03 00 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 03 00 78 08 00 90 00 F4 [21:26:01]RAPDU: 90 00 [21:26:01]wFMCommunicate OK [21:26:01]wFMCommunicate request_size=10 [21:26:01]MH_SAM_APDU [21:26:01]CAPDU: 80 0D 02 02 05 5E 83 8C 84 98 [21:26:01]Write to MH i2c: E2 0D 00 79 08 80 0D 02 02 05 00 5E 83 8C 84 98 00 00 8E [21:26:01]Write i2c OK [21:26:01]MH_I2C_Read... [21:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:02]Read from MH i2c: E2 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 03 00 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [21:26:02]RAPDU: 90 00 [21:26:02]wFMCommunicate OK [21:26:02]wFMCommunicate request_size=4 [21:26:02]MH_SAM_APDU [21:26:02]CAPDU: 80 0D 03 02 [21:26:02]Write to MH i2c: E2 08 00 7A 08 80 0D 03 02 00 00 00 00 FD [21:26:02]Write i2c OK [21:26:02]MH_I2C_Read... [21:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:02]Read from MH i2c: E2 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 0B 00 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 0B 00 7A 08 00 14 7D 3A EB A8 F3 59 44 90 00 EC [21:26:02]RAPDU: 14 7D 3A EB A8 F3 59 44 90 00 [21:26:02]wFMCommunicate OK [21:26:02]SAM_PROTO_SignData done [21:26:02]FM_MakeSignedData done [21:26:02]CreateOFDProtocolMessage [21:26:02]wFMCommunicate request_size=4 [21:26:02]MH_SAM_APDU [21:26:02]CAPDU: 80 11 00 00 [21:26:02]Write to MH i2c: E2 08 00 7B 08 80 11 00 00 00 00 00 00 FD [21:26:02]Write i2c OK [21:26:02]MH_I2C_Read... [21:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:02]Read from MH i2c: E2 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 17 00 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: E2 17 00 7B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 54 [21:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:26:02]wFMCommunicate OK [21:26:02]CreateOFDProtocolMessage done [21:26:02]OFDSenderStorePacket 27295 [21:26:02]StoreOFDPacket docnum=27295 [21:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 28 51 07 01 12 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 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 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 51 01 00 00 F4 03 04 00 E4 AA 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 9F 6A 00 00 35 04 06 00 3A 5E 83 8C 84 98 14 7D 3A EB A8 F3 59 44 [21:26:02]CheckFolder [21:26:02]dirname=/storage/ofd_packets [21:26:02]CheckFolder done [21:26:02]ProducePacketName [21:26:02]name=ofd_packets/00027295 [21:26:02]NVStorageSaveData ofd_packets/00027295 [21:26:02]File name is /storage/ofd_packets/00027295 [21:26:02]Write 301 bytes [21:26:02]NVStorageSaveData done [21:26:02]OFDSenderStorePacket done [21:26:02]KKMCreateOFDPacket done [21:26:02]NVStorageSaveData kkm_last_timestamp [21:26:02]File name is /storage/kkm_last_timestamp [21:26:02]Write 4 bytes [21:26:02]NVStorageSaveData done [21:26:02]ExternCall_PrintAddStr [21:26:02]wPrintStart [21:26:02]Write to MH i2c: 01 00 00 7C 08 84 [21:26:02]Write i2c OK [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: 01 [21:26:02]MH_I2C_Read... [21:26:02]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:02]ProducePacketName [21:26:02]name=ofd_packets/00027177 [21:26:02]OFD Sender: To server: pG, [21:26:02]CommunicateWithHost lk.salyk.kg:30040 [21:26:02]ConnectInit lk.salyk.kg [21:26:02]Read from MH i2c: 01 07 00 [21:26:02]MH_I2C_Read... [21:26:02]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 FF 0F 99 [21:26:02]RasterBufferAndPrint [21:26:02]line Счет N : (1)281161 [21:26:02]line ИНН: 00112200510239 [21:26:02]line Контрольно-Кассовый Чек [21:26:02]line ПРОДАЖА [21:26:02]line ТРК (МРК, ГНК) : 6 [21:26:02]line Товар: 2710124130 [21:26:02]line Аи-92-К-5 [21:26:02]line 7.420 * 67.40 [21:26:02]line = 500.11 [21:26:02]line НДС 12% НСП 1% [21:26:02]line > о реализуемом товаре [21:26:02]line ОКРУГЛЕНИЕ: -0.11 [21:26:02]line ИТОГО: 500.00 [21:26:02]line Внесено: 500.00 [21:26:02]line СДАЧА: 0.00 [21:26:02]line НСП 1% : 4.43 [21:26:02]line НДС 12% : 53.11 [21:26:02]line Наличными: 500.00 [21:26:02]line Безнал.: 0.00 [21:26:02]line Место: АЗС № 50 "Bishkek Petroleum" [21:26:02]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:26:02]line СНО: Общий режим [21:26:02]line Чек 337 09.07.2024 21:25 [21:26:02]line Смена: 114 ФФД: 1.0 [21:26:03]line ЗНМ: 0300000229 [21:26:03]line РНМ: 0000000000151136 [21:26:03]line Версия ККМ: v1.0 [21:26:03]line ФМ: 0000000000959418 [21:26:03]line ФД: 27295 [21:26:03]line ФПД: 64177608361112 [21:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T212556&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27295&fm=64177608361112&tin=00112200510239®Number=0000000000151136&sum=50000 [21:26:03]written 0, free lines is 4095 [21:26:03]Write to MH i2c: 01 00 00 A7 08 AF [21:26:03]Write i2c OK [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: 01 [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: 01 07 00 [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 B3 0C 75 [21:26:03]RasterBufferAndPrint [21:26:03]line [21:26:03]line [21:26:03]line [21:26:03]line [21:26:03]line [21:26:03]written 0, free lines is 3392 [21:26:03]MH_Cut [21:26:03]Write to MH i2c: D1 01 00 AE 08 01 88 [21:26:03]Write i2c OK [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: D1 [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: D1 01 00 [21:26:03]MH_I2C_Read... [21:26:03]Read from MH i2c: D1 01 00 AE 08 00 87 [21:26:03]Write to MH i2c: 01 00 00 AF 08 B7 [21:26:03]Write i2c OK [21:26:03]MH_I2C_Read... [21:26:04]*** Cut start [21:26:04]*** Partial cut [21:26:04]*** CUTSNS_PIN = 1 [21:26:04]*** CUTSNS_PIN = 0 [21:26:04]*** Brake cut motor [21:26:04]Read from MH i2c: 01 [21:26:04]MH_I2C_Read... [21:26:05]*** Stop cut motor [21:26:05]*** Cut end [21:26:05]Read from MH i2c: 01 07 00 [21:26:05]MH_I2C_Read... [21:26:05]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 FF 0F CC [21:26:05]process_action close_receipt done [21:26:05]requested_data is exist [21:26:05]produce_requested_data [21:26:05]requested_item fm.sn is exist - process it [21:26:05]wFMCommunicate request_size=4 [21:26:05]MH_SAM_APDU [21:26:05]CAPDU: 80 11 00 00 [21:26:05]Write to MH i2c: E2 08 00 B0 08 80 11 00 00 00 00 00 00 32 [21:26:05]Write i2c OK [21:26:05]MH_I2C_Read... [21:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:05]Read from MH i2c: E2 [21:26:05]MH_I2C_Read... [21:26:05]Read from MH i2c: E2 17 00 [21:26:05]MH_I2C_Read... [21:26:05]Read from MH i2c: E2 17 00 B0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 89 [21:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:26:05]wFMCommunicate OK [21:26:05]requested_item fd.num is exist - process it [21:26:05]SAM_PROTO_GetFieldsCounters [21:26:05]wFMCommunicate request_size=4 [21:26:05]MH_SAM_APDU [21:26:05]CAPDU: 80 13 00 00 [21:26:05]Write to MH i2c: E2 08 00 B1 08 80 13 00 00 00 00 00 00 35 [21:26:05]Write i2c OK [21:26:05]MH_I2C_Read... [21:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:05]Read from MH i2c: E2 [21:26:05]MH_I2C_Read... [21:26:05]Read from MH i2c: E2 62 00 [21:26:05]MH_I2C_Read... [21:26:05]Read from MH i2c: E2 62 00 B1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9F 6A 00 00 0E 04 04 00 72 00 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 C3 [21:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 9F 6A 00 00 0E 04 04 00 72 00 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 [21:26:06]wFMCommunicate OK [21:26:06]SAM_PROTO_GetFieldsCounters done [21:26:06]requested_item shift.num is exist - process it [21:26:06]requested_item shift.opened is exist - process it [21:26:06]req_shift_opened [21:26:06]FM_GetShiftState [21:26:06]SAM_PROTO_GetShiftState [21:26:06]wFMCommunicate request_size=4 [21:26:06]MH_SAM_APDU [21:26:06]CAPDU: 80 13 01 00 [21:26:06]Write to MH i2c: E2 08 00 B2 08 80 13 01 00 00 00 00 00 37 [21:26:06]Write i2c OK [21:26:06]MH_I2C_Read... [21:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:06]Read from MH i2c: E2 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: E2 0E 00 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: E2 0E 00 B2 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 45 [21:26:06]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:26:06]wFMCommunicate OK [21:26:06]SAM_PROTO_GetShiftState done [21:26:06]FM_GetShiftState done [21:26:06]req_shift_opened done [21:26:06]requested_item shift.open_date is exist - process it [21:26:06]req_shift_open_date [21:26:06]req_shift_open_date done [21:26:06]produce_requested_data done [21:26:06]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27295,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:26:06]process_action_free close_receipt [21:26:06]json_value_free [21:26:06]json_value_free done [21:26:06]process_json_proto returns [21:26:06]Send response to host [21:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27295,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:26:06]free response buf [21:26:06]execute_script done [21:26:06]execute_script returns [21:26:06]free content buf [21:26:06]Sock 12.Close socket [21:26:06]Sock 12.Thread stoped [21:26:07]ConnectInit Can't take IP for lk.salyk.kg [21:26:07]CommunicateWithHost connect error [21:26:07]CommunicateWithHost err = -1 [21:26:07]OFD Sender: Server communicate error [21:26:12]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:12]ProducePacketName [21:26:12]name=ofd_packets/00027177 [21:26:12]OFD Sender: To server: pG, [21:26:12]CommunicateWithHost lk.salyk.kg:30040 [21:26:12]ConnectInit lk.salyk.kg [21:26:17]ConnectInit Can't take IP for lk.salyk.kg [21:26:17]CommunicateWithHost connect error [21:26:17]CommunicateWithHost err = -1 [21:26:17]OFD Sender: Server communicate error [21:26:22]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:22]ProducePacketName [21:26:22]name=ofd_packets/00027177 [21:26:22]OFD Sender: To server: pG, [21:26:22]CommunicateWithHost lk.salyk.kg:30040 [21:26:22]ConnectInit lk.salyk.kg [21:26:27]ConnectInit Can't take IP for lk.salyk.kg [21:26:27]CommunicateWithHost connect error [21:26:27]CommunicateWithHost err = -1 [21:26:27]OFD Sender: Server communicate error [21:26:32]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:32]ProducePacketName [21:26:32]name=ofd_packets/00027177 [21:26:32]OFD Sender: To server: pG, [21:26:32]CommunicateWithHost lk.salyk.kg:30040 [21:26:32]ConnectInit lk.salyk.kg [21:26:37]ConnectInit Can't take IP for lk.salyk.kg [21:26:37]CommunicateWithHost connect error [21:26:37]CommunicateWithHost err = -1 [21:26:37]OFD Sender: Server communicate error [21:26:43]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:43]ProducePacketName [21:26:43]name=ofd_packets/00027177 [21:26:43]OFD Sender: To server: pG, [21:26:43]CommunicateWithHost lk.salyk.kg:30040 [21:26:43]ConnectInit lk.salyk.kg [21:26:48]ConnectInit Can't take IP for lk.salyk.kg [21:26:48]CommunicateWithHost connect error [21:26:48]CommunicateWithHost err = -1 [21:26:48]OFD Sender: Server communicate error [21:26:53]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:26:53]ProducePacketName [21:26:53]name=ofd_packets/00027177 [21:26:53]OFD Sender: To server: pG, [21:26:53]CommunicateWithHost lk.salyk.kg:30040 [21:26:53]ConnectInit lk.salyk.kg [21:26:58]ConnectInit Can't take IP for lk.salyk.kg [21:26:58]CommunicateWithHost connect error [21:26:58]CommunicateWithHost err = -1 [21:26:58]OFD Sender: Server communicate error [21:27:03]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:03]ProducePacketName [21:27:03]name=ofd_packets/00027177 [21:27:03]OFD Sender: To server: pG, [21:27:03]CommunicateWithHost lk.salyk.kg:30040 [21:27:03]ConnectInit lk.salyk.kg [21:27:08]ConnectInit Can't take IP for lk.salyk.kg [21:27:08]CommunicateWithHost connect error [21:27:08]CommunicateWithHost err = -1 [21:27:08]OFD Sender: Server communicate error [21:27:13]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00027177 [21:27:13]OFD Sender: To server: pG, [21:27:13]CommunicateWithHost lk.salyk.kg:30040 [21:27:13]ConnectInit lk.salyk.kg [21:27:18]ConnectInit Can't take IP for lk.salyk.kg [21:27:18]CommunicateWithHost connect error [21:27:18]CommunicateWithHost err = -1 [21:27:18]OFD Sender: Server communicate error [21:27:23]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:23]ProducePacketName [21:27:23]name=ofd_packets/00027177 [21:27:23]OFD Sender: To server: pG, [21:27:23]CommunicateWithHost lk.salyk.kg:30040 [21:27:23]ConnectInit lk.salyk.kg [21:27:28]ConnectInit Can't take IP for lk.salyk.kg [21:27:28]CommunicateWithHost connect error [21:27:28]CommunicateWithHost err = -1 [21:27:28]OFD Sender: Server communicate error [21:27:33]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:33]ProducePacketName [21:27:33]name=ofd_packets/00027177 [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:36]ConnectInit Can't connect to host [21:27:38]ConnectInit Can't take IP for lk.salyk.kg [21:27:38]CommunicateWithHost connect error [21:27:38]CommunicateWithHost err = -1 [21:27:38]OFD Sender: Server communicate error [21:27:43]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:43]ProducePacketName [21:27:43]name=ofd_packets/00027177 [21:27:43]OFD Sender: To server: pG, [21:27:43]CommunicateWithHost lk.salyk.kg:30040 [21:27:43]ConnectInit lk.salyk.kg [21:27:48]ConnectInit Can't take IP for lk.salyk.kg [21:27:48]CommunicateWithHost connect error [21:27:48]CommunicateWithHost err = -1 [21:27:48]OFD Sender: Server communicate error [21:27:53]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:27:53]ProducePacketName [21:27:53]name=ofd_packets/00027177 [21:27:53]OFD Sender: To server: pG, [21:27:53]CommunicateWithHost lk.salyk.kg:30040 [21:27:53]ConnectInit lk.salyk.kg [21:27:58]ConnectInit Can't take IP for lk.salyk.kg [21:27:58]CommunicateWithHost connect error [21:27:58]CommunicateWithHost err = -1 [21:27:58]OFD Sender: Server communicate error [21:28:03]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:03]ProducePacketName [21:28:03]name=ofd_packets/00027177 [21:28:03]OFD Sender: To server: pG, [21:28:03]CommunicateWithHost lk.salyk.kg:30040 [21:28:03]ConnectInit lk.salyk.kg [21:28:08]ConnectInit Can't take IP for lk.salyk.kg [21:28:08]CommunicateWithHost connect error [21:28:08]CommunicateWithHost err = -1 [21:28:08]OFD Sender: Server communicate error [21:28:13]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:13]ProducePacketName [21:28:13]name=ofd_packets/00027177 [21:28:13]OFD Sender: To server: pG, [21:28:13]CommunicateWithHost lk.salyk.kg:30040 [21:28:13]ConnectInit lk.salyk.kg [21:28:18]ConnectInit Can't take IP for lk.salyk.kg [21:28:18]CommunicateWithHost connect error [21:28:18]CommunicateWithHost err = -1 [21:28:18]OFD Sender: Server communicate error [21:28:23]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:23]ProducePacketName [21:28:23]name=ofd_packets/00027177 [21:28:23]OFD Sender: To server: pG, [21:28:23]CommunicateWithHost lk.salyk.kg:30040 [21:28:23]ConnectInit lk.salyk.kg [21:28:28]ConnectInit Can't take IP for lk.salyk.kg [21:28:28]CommunicateWithHost connect error [21:28:28]CommunicateWithHost err = -1 [21:28:28]OFD Sender: Server communicate error [21:28:33]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:33]ProducePacketName [21:28:33]name=ofd_packets/00027177 [21:28:33]OFD Sender: To server: pG, [21:28:33]CommunicateWithHost lk.salyk.kg:30040 [21:28:33]ConnectInit lk.salyk.kg [21:28:38]ConnectInit Can't take IP for lk.salyk.kg [21:28:38]CommunicateWithHost connect error [21:28:38]CommunicateWithHost err = -1 [21:28:38]OFD Sender: Server communicate error [21:28:43]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:43]ProducePacketName [21:28:43]name=ofd_packets/00027177 [21:28:43]OFD Sender: To server: pG, [21:28:43]CommunicateWithHost lk.salyk.kg:30040 [21:28:43]ConnectInit lk.salyk.kg [21:28:48]ConnectInit Can't take IP for lk.salyk.kg [21:28:48]CommunicateWithHost connect error [21:28:48]CommunicateWithHost err = -1 [21:28:48]OFD Sender: Server communicate error [21:28:53]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:28:53]ProducePacketName [21:28:53]name=ofd_packets/00027177 [21:28:53]OFD Sender: To server: pG, [21:28:53]CommunicateWithHost lk.salyk.kg:30040 [21:28:53]ConnectInit lk.salyk.kg [21:28:58]ConnectInit Can't take IP for lk.salyk.kg [21:28:58]CommunicateWithHost connect error [21:28:58]CommunicateWithHost err = -1 [21:28:58]OFD Sender: Server communicate error [21:29:03]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:03]ProducePacketName [21:29:03]name=ofd_packets/00027177 [21:29:03]OFD Sender: To server: pG, [21:29:03]CommunicateWithHost lk.salyk.kg:30040 [21:29:03]ConnectInit lk.salyk.kg [21:29:08]ConnectInit Can't take IP for lk.salyk.kg [21:29:08]CommunicateWithHost connect error [21:29:08]CommunicateWithHost err = -1 [21:29:08]OFD Sender: Server communicate error [21:29:13]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:13]ProducePacketName [21:29:13]name=ofd_packets/00027177 [21:29:13]OFD Sender: To server: pG, [21:29:13]CommunicateWithHost lk.salyk.kg:30040 [21:29:13]ConnectInit lk.salyk.kg [21:29:18]ConnectInit Can't take IP for lk.salyk.kg [21:29:18]CommunicateWithHost connect error [21:29:18]CommunicateWithHost err = -1 [21:29:18]OFD Sender: Server communicate error [21:29:23]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:23]ProducePacketName [21:29:23]name=ofd_packets/00027177 [21:29:23]OFD Sender: To server: pG, [21:29:23]CommunicateWithHost lk.salyk.kg:30040 [21:29:23]ConnectInit lk.salyk.kg [21:29:28]ConnectInit Can't take IP for lk.salyk.kg [21:29:28]CommunicateWithHost connect error [21:29:28]CommunicateWithHost err = -1 [21:29:28]OFD Sender: Server communicate error [21:29:33]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:33]ProducePacketName [21:29:33]name=ofd_packets/00027177 [21:29:33]OFD Sender: To server: pG, [21:29:33]CommunicateWithHost lk.salyk.kg:30040 [21:29:33]ConnectInit lk.salyk.kg [21:29:38]ConnectInit Can't take IP for lk.salyk.kg [21:29:38]CommunicateWithHost connect error [21:29:38]CommunicateWithHost err = -1 [21:29:38]OFD Sender: Server communicate error [21:29:43]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:43]ProducePacketName [21:29:43]name=ofd_packets/00027177 [21:29:43]OFD Sender: To server: pG, [21:29:43]CommunicateWithHost lk.salyk.kg:30040 [21:29:43]ConnectInit lk.salyk.kg [21:29:48]ConnectInit Can't take IP for lk.salyk.kg [21:29:48]CommunicateWithHost connect error [21:29:48]CommunicateWithHost err = -1 [21:29:48]OFD Sender: Server communicate error [21:29:53]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:29:53]ProducePacketName [21:29:53]name=ofd_packets/00027177 [21:29:53]OFD Sender: To server: pG, [21:29:53]CommunicateWithHost lk.salyk.kg:30040 [21:29:53]ConnectInit lk.salyk.kg [21:29:54]ConnectInit Can't connect to host [21:29:58]ConnectInit Can't take IP for lk.salyk.kg [21:29:58]CommunicateWithHost connect error [21:29:58]CommunicateWithHost err = -1 [21:29:58]OFD Sender: Server communicate error [21:30:03]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:03]ProducePacketName [21:30:03]name=ofd_packets/00027177 [21:30:03]OFD Sender: To server: pG, [21:30:03]CommunicateWithHost lk.salyk.kg:30040 [21:30:03]ConnectInit lk.salyk.kg [21:30:08]ConnectInit Can't take IP for lk.salyk.kg [21:30:08]CommunicateWithHost connect error [21:30:08]CommunicateWithHost err = -1 [21:30:08]OFD Sender: Server communicate error [21:30:13]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:13]ProducePacketName [21:30:13]name=ofd_packets/00027177 [21:30:13]OFD Sender: To server: pG, [21:30:13]CommunicateWithHost lk.salyk.kg:30040 [21:30:13]ConnectInit lk.salyk.kg [21:30:18]ConnectInit Can't take IP for lk.salyk.kg [21:30:18]CommunicateWithHost connect error [21:30:18]CommunicateWithHost err = -1 [21:30:18]OFD Sender: Server communicate error [21:30:23]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:23]ProducePacketName [21:30:23]name=ofd_packets/00027177 [21:30:23]OFD Sender: To server: pG, [21:30:23]CommunicateWithHost lk.salyk.kg:30040 [21:30:23]ConnectInit lk.salyk.kg [21:30:28]ConnectInit Can't take IP for lk.salyk.kg [21:30:28]CommunicateWithHost connect error [21:30:28]CommunicateWithHost err = -1 [21:30:28]OFD Sender: Server communicate error [21:30:33]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:33]ProducePacketName [21:30:33]name=ofd_packets/00027177 [21:30:33]OFD Sender: To server: pG, [21:30:33]CommunicateWithHost lk.salyk.kg:30040 [21:30:33]ConnectInit lk.salyk.kg [21:30:39]ConnectInit Can't take IP for lk.salyk.kg [21:30:39]CommunicateWithHost connect error [21:30:39]CommunicateWithHost err = -1 [21:30:39]OFD Sender: Server communicate error [21:30:44]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:44]ProducePacketName [21:30:44]name=ofd_packets/00027177 [21:30:44]OFD Sender: To server: pG, [21:30:44]CommunicateWithHost lk.salyk.kg:30040 [21:30:44]ConnectInit lk.salyk.kg [21:30:49]ConnectInit Can't take IP for lk.salyk.kg [21:30:49]CommunicateWithHost connect error [21:30:49]CommunicateWithHost err = -1 [21:30:49]OFD Sender: Server communicate error [21:30:54]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:30:54]ProducePacketName [21:30:54]name=ofd_packets/00027177 [21:30:54]OFD Sender: To server: pG, [21:30:54]CommunicateWithHost lk.salyk.kg:30040 [21:30:54]ConnectInit lk.salyk.kg [21:30:59]ConnectInit Can't take IP for lk.salyk.kg [21:30:59]CommunicateWithHost connect error [21:30:59]CommunicateWithHost err = -1 [21:30:59]OFD Sender: Server communicate error [21:31:04]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:04]ProducePacketName [21:31:04]name=ofd_packets/00027177 [21:31:04]OFD Sender: To server: pG, [21:31:04]CommunicateWithHost lk.salyk.kg:30040 [21:31:04]ConnectInit lk.salyk.kg [21:31:09]ConnectInit Can't take IP for lk.salyk.kg [21:31:09]CommunicateWithHost connect error [21:31:09]CommunicateWithHost err = -1 [21:31:09]OFD Sender: Server communicate error [21:31:14]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:14]ProducePacketName [21:31:14]name=ofd_packets/00027177 [21:31:14]OFD Sender: To server: pG, [21:31:14]CommunicateWithHost lk.salyk.kg:30040 [21:31:14]ConnectInit lk.salyk.kg [21:31:19]ConnectInit Can't take IP for lk.salyk.kg [21:31:19]CommunicateWithHost connect error [21:31:19]CommunicateWithHost err = -1 [21:31:19]OFD Sender: Server communicate error [21:31:24]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:24]ProducePacketName [21:31:24]name=ofd_packets/00027177 [21:31:24]OFD Sender: To server: pG, [21:31:24]CommunicateWithHost lk.salyk.kg:30040 [21:31:24]ConnectInit lk.salyk.kg [21:31:29]ConnectInit Can't take IP for lk.salyk.kg [21:31:29]CommunicateWithHost connect error [21:31:29]CommunicateWithHost err = -1 [21:31:29]OFD Sender: Server communicate error [21:31:34]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:34]ProducePacketName [21:31:34]name=ofd_packets/00027177 [21:31:34]OFD Sender: To server: pG, [21:31:34]CommunicateWithHost lk.salyk.kg:30040 [21:31:34]ConnectInit lk.salyk.kg [21:31:39]ConnectInit Can't take IP for lk.salyk.kg [21:31:39]CommunicateWithHost connect error [21:31:39]CommunicateWithHost err = -1 [21:31:39]OFD Sender: Server communicate error [21:31:44]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:44]ProducePacketName [21:31:44]name=ofd_packets/00027177 [21:31:44]OFD Sender: To server: pG, [21:31:44]CommunicateWithHost lk.salyk.kg:30040 [21:31:44]ConnectInit lk.salyk.kg [21:31:49]ConnectInit Can't take IP for lk.salyk.kg [21:31:49]CommunicateWithHost connect error [21:31:49]CommunicateWithHost err = -1 [21:31:49]OFD Sender: Server communicate error [21:31:54]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:31:54]ProducePacketName [21:31:54]name=ofd_packets/00027177 [21:31:54]OFD Sender: To server: pG, [21:31:54]CommunicateWithHost lk.salyk.kg:30040 [21:31:54]ConnectInit lk.salyk.kg [21:31:59]ConnectInit Can't take IP for lk.salyk.kg [21:31:59]CommunicateWithHost connect error [21:31:59]CommunicateWithHost err = -1 [21:31:59]OFD Sender: Server communicate error [21:32:04]OFD Sender: Processing packet 27177 [packets to send 131, broken 13] [21:32:04]ProducePacketName [21:32:04]name=ofd_packets/00027177 [21:32:04]OFD Sender: To server: pG, [21:32:04]CommunicateWithHost lk.salyk.kg:30040 [21:32:04]ConnectInit lk.salyk.kg [21:32:04]accept exits with 11 [21:32:04]New connection [21:32:04]New thread 3066473828 created [21:32:04]Thread 3066617188 joined [21:32:04]Waiting for new connection... [21:32:04] Sock 11.Parse request [21:32:04]Sock 11.Check first char [21:32:04]Sock 11.First char is OK [21:32:04]request: POST /json_proto HTTP/1.0 [21:32:04]Method: POST [21:32:04]URL: /json_proto [21:32:04]Method is POST - this is cgi request [21:32:04]url: /json_proto [21:32:04]query_string will be loaded in cgi processing [21:32:04]execute_cgi json_proto POST (null) [21:32:04]execute_cgi path=json_proto method=POST [21:32:04]POST find Content-Length [21:32:04]Host: 10.101.50.102:8080 [21:32:04]Content-Length: 677 [21:32:04]Content-Type: application/json [21:32:04] [21:32:04]POST finish read [21:32:04]Found Content-Length = 677 [21:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:04]execute_script... [21:32: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)281162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:04]POST & json_proto [21:32:04]process_json_proto [21:32:04]json parsed OK: [21:32:04]protocol is kg_v1.0 [21:32:04]action value=close_receipt [21:32:04]process_action close_receipt [21:32:04]cmd_close_receipt [21:32:04]MH_GetDate [21:32:04]Write to MH i2c: F0 00 00 B3 08 AA [21:32:04]Write i2c OK [21:32:04]MH_I2C_Read... [21:32:04]Read from MH i2c: F0 [21:32:04]MH_I2C_Read... [21:32:04]Read from MH i2c: F0 09 00 [21:32:04]MH_I2C_Read... [21:32:04]Read from MH i2c: F0 09 00 B3 08 00 55 AC 8D 66 3C B9 F9 65 FA [21:32:04]GetLastDocTimeStamp 1720560356 [21:32:04]current date 1720560725 [21:32:04]FM_GetShiftState [21:32:04]SAM_PROTO_GetShiftState [21:32:04]wFMCommunicate request_size=4 [21:32:04]MH_SAM_APDU [21:32:04]CAPDU: 80 13 01 00 [21:32:04]Write to MH i2c: E2 08 00 B4 08 80 13 01 00 00 00 00 00 39 [21:32:04]Write i2c OK [21:32:04]MH_I2C_Read... [21:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:04]Read from MH i2c: E2 [21:32:04]MH_I2C_Read... [21:32:04]Read from MH i2c: E2 0E 00 [21:32:04]MH_I2C_Read... [21:32:04]Read from MH i2c: E2 0E 00 B4 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 47 [21:32:05]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:32:05]wFMCommunicate OK [21:32:05]SAM_PROTO_GetShiftState done [21:32:05]FM_GetShiftState done [21:32:05]opened in 1720484494 [21:32:05]opened+sec_in_day 1720570894 [21:32:05]quantity*price = 70028 [21:32:05]sum+1 = 70030 [21:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 338 09.07.2024 21:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27296 ФПД: 36246187171078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213206&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27296&fm=36246187171078&tin=00112200510239®Number=0000000000151136&sum=70000 [21:32:09]StoreToDocumentArchive [21:32:09]shift 114 fd 27296 [21:32:09]save to /storage/0114/doc_00027296 [21:32:09]save last doc name /storage/0114/doc_00027296 to /storage/kkm_last_doc_name [21:32:09]save OK [21:32:09]Clear old archive folders... [21:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:09]tlvbuf is 00644330 [21:32:09]SAM_PROTO_ClearQueue [21:32:09]wFMCommunicate request_size=4 [21:32:09]MH_SAM_APDU [21:32:09]CAPDU: 80 09 00 00 [21:32:09]Write to MH i2c: E2 08 00 C1 08 80 09 00 00 00 00 00 00 3B [21:32:09]Write i2c OK [21:32:09]MH_I2C_Read... [21:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:09]Read from MH i2c: E2 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 03 00 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 03 00 C1 08 00 90 00 3D [21:32:09]RAPDU: 90 00 [21:32:09]wFMCommunicate OK [21:32:09]SAM_PROTO_ClearQueue done [21:32:09]KKMCreateOFDPacket [21:32:09]OFDProtocolAddRootSTLVToBuf [21:32:09]FM_MakeSignedData [21:32:09]FM_MakeSignedData [21:32:09]SAM_PROTO_SignData [21:32:09]wFMCommunicate request_size=4 [21:32:09]MH_SAM_APDU [21:32:09]CAPDU: 80 0D 01 02 [21:32:09]Write to MH i2c: E2 08 00 C2 08 80 0D 01 02 00 00 00 00 43 [21:32:09]ConnectInit Can't take IP for lk.salyk.kg [21:32:09]CommunicateWithHost connect error [21:32:09]CommunicateWithHost err = -1 [21:32:09]OFD Sender: Server communicate error [21:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:09]Write i2c OK [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 03 00 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [21:32:09]RAPDU: 90 00 [21:32:09]wFMCommunicate OK [21:32:09]wFMCommunicate request_size=255 [21:32:09]MH_SAM_APDU [21: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 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 56 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A0 6A 00 00 35 04 06 00 20 [21:32:10]Write to MH i2c: E2 02 01 C3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 56 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A0 6A 00 00 35 04 06 00 20 00 00 94 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 03 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [21:32:11]RAPDU: 90 00 [21:32:11]wFMCommunicate OK [21:32:11]wFMCommunicate request_size=10 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 0D 02 02 05 F7 39 1C 5D 06 [21:32:11]Write to MH i2c: E2 0D 00 C4 08 80 0D 02 02 05 00 F7 39 1C 5D 06 00 00 FF [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 03 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [21:32:11]RAPDU: 90 00 [21:32:11]wFMCommunicate OK [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 0D 03 02 [21:32:11]Write to MH i2c: E2 08 00 C5 08 80 0D 03 02 00 00 00 00 48 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0B 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0B 00 C5 08 00 E2 B2 3A 6E 0C 69 EA CF 90 00 B3 [21:32:12]RAPDU: E2 B2 3A 6E 0C 69 EA CF 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_SignData done [21:32:12]FM_MakeSignedData done [21:32:12]CreateOFDProtocolMessage [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 11 00 00 [21:32:12]Write to MH i2c: E2 08 00 C6 08 80 11 00 00 00 00 00 00 48 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 17 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 17 00 C6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 9F [21:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:32:12]wFMCommunicate OK [21:32:12]CreateOFDProtocolMessage done [21:32:12]OFDSenderStorePacket 27296 [21:32:12]StoreOFDPacket docnum=27296 [21:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 D7 0E 07 01 73 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 56 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A0 6A 00 00 35 04 06 00 20 F7 39 1C 5D 06 E2 B2 3A 6E 0C 69 EA CF [21:32:12]CheckFolder [21:32:12]dirname=/storage/ofd_packets [21:32:12]CheckFolder done [21:32:12]ProducePacketName [21:32:12]name=ofd_packets/00027296 [21:32:12]NVStorageSaveData ofd_packets/00027296 [21:32:12]File name is /storage/ofd_packets/00027296 [21:32:12]Write 301 bytes [21:32:12]NVStorageSaveData done [21:32:12]OFDSenderStorePacket done [21:32:12]KKMCreateOFDPacket done [21:32:12]NVStorageSaveData kkm_last_timestamp [21:32:12]File name is /storage/kkm_last_timestamp [21:32:12]Write 4 bytes [21:32:12]NVStorageSaveData done [21:32:12]ExternCall_PrintAddStr [21:32:12]wPrintStart [21:32:12]Write to MH i2c: 01 00 00 C7 08 CF [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 07 00 [21:32:12]MH_I2C_Read... [21:32:12]OFD Sender: Processing packet 27177 [packets to send 132, broken 13] [21:32:12]ProducePacketName [21:32:12]name=ofd_packets/00027177 [21:32:12]OFD Sender: To server: pG, [21:32:12]CommunicateWithHost lk.salyk.kg:30040 [21:32:12]ConnectInit lk.salyk.kg [21:32:12]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 FF 0F E4 [21:32:12]RasterBufferAndPrint [21:32:12]line Счет N : (1)281162 [21:32:12]line ИНН: 00112200510239 [21:32:12]line Контрольно-Кассовый Чек [21:32:12]line ПРОДАЖА [21:32:12]line ТРК (МРК, ГНК) : 2 [21:32:12]line Товар: 2710124130 [21:32:12]line Аи-92-К-5 [21:32:12]line 10.390 * 67.40 [21:32:12]line = 700.29 [21:32:12]line НДС 12% НСП 1% [21:32:12]line > о реализуемом товаре [21:32:12]line ОКРУГЛЕНИЕ: -0.29 [21:32:12]line ИТОГО: 700.00 [21:32:12]line Внесено: 700.00 [21:32:12]line СДАЧА: 0.00 [21:32:12]line НСП 1% : 6.20 [21:32:12]line НДС 12% : 74.37 [21:32:12]line Наличными: 700.00 [21:32:12]line Безнал.: 0.00 [21:32:12]line Место: АЗС № 50 "Bishkek Petroleum" [21:32:12]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:32:12]line СНО: Общий режим [21:32:12]line Чек 338 09.07.2024 21:32 [21:32:12]line Смена: 114 ФФД: 1.0 [21:32:12]line ЗНМ: 0300000229 [21:32:12]line РНМ: 0000000000151136 [21:32:12]line Версия ККМ: v1.0 [21:32:12]line ФМ: 0000000000959418 [21:32:12]line ФД: 27296 [21:32:12]line ФПД: 36246187171078 [21:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213206&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27296&fm=36246187171078&tin=00112200510239®Number=0000000000151136&sum=70000 [21:32:12]written 0, free lines is 4095 [21:32:13]Write to MH i2c: 01 00 00 F2 08 FA [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 [21:32:13]MH_I2C_Read... [21:32:13]ConnectInit Can't connect to host [21:32:13]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 AF 0C BC [21:32:13]RasterBufferAndPrint [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]written 0, free lines is 3421 [21:32:13]MH_Cut [21:32:13]Write to MH i2c: D1 01 00 F9 08 01 D3 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 01 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 01 00 F9 08 00 D2 [21:32:13]Write to MH i2c: 01 00 00 FA 08 02 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:14]*** Cut start [21:32:14]*** Partial cut [21:32:14]*** CUTSNS_PIN = 1 [21:32:14]*** CUTSNS_PIN = 0 [21:32:14]*** Brake cut motor [21:32:14]Read from MH i2c: 01 [21:32:14]MH_I2C_Read... [21:32:14]*** Stop cut motor [21:32:14]*** Cut end [21:32:14]Read from MH i2c: 01 07 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 FF 0F 17 [21:32:14]process_action close_receipt done [21:32:14]requested_data is exist [21:32:14]produce_requested_data [21:32:14]requested_item fm.sn is exist - process it [21:32:14]wFMCommunicate request_size=4 [21:32:14]MH_SAM_APDU [21:32:14]CAPDU: 80 11 00 00 [21:32:14]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [21:32:14]Write i2c OK [21:32:14]MH_I2C_Read... [21:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:14]Read from MH i2c: E2 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 17 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 D4 [21:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:32:15]wFMCommunicate OK [21:32:15]requested_item fd.num is exist - process it [21:32:15]SAM_PROTO_GetFieldsCounters [21:32:15]wFMCommunicate request_size=4 [21:32:15]MH_SAM_APDU [21:32:15]CAPDU: 80 13 00 00 [21:32:15]Write to MH i2c: E2 08 00 FC 08 80 13 00 00 00 00 00 00 80 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:15]Read from MH i2c: E2 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 62 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 62 00 FC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A0 6A 00 00 0E 04 04 00 72 00 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 12 [21:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A0 6A 00 00 0E 04 04 00 72 00 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 [21:32:15]wFMCommunicate OK [21:32:15]SAM_PROTO_GetFieldsCounters done [21:32:15]requested_item shift.num is exist - process it [21:32:15]requested_item shift.opened is exist - process it [21:32:15]req_shift_opened [21:32:15]FM_GetShiftState [21:32:16]SAM_PROTO_GetShiftState [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 13 01 00 [21:32:16]Write to MH i2c: E2 08 00 FD 08 80 13 01 00 00 00 00 00 82 [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 FD 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 90 [21:32:16]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:32:16]wFMCommunicate OK [21:32:16]SAM_PROTO_GetShiftState done [21:32:16]FM_GetShiftState done [21:32:16]req_shift_opened done [21:32:16]requested_item shift.open_date is exist - process it [21:32:16]req_shift_open_date [21:32:16]req_shift_open_date done [21:32:16]produce_requested_data done [21:32:16]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27296,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:32:16]process_action_free close_receipt [21:32:16]json_value_free [21:32:16]json_value_free done [21:32:16]process_json_proto returns [21:32:16]Send response to host [21:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27296,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:32:16]free response buf [21:32:16]execute_script done [21:32:16]execute_script returns [21:32:16]free content buf [21:32:16]Sock 11.Close socket [21:32:16]Sock 11.Thread stoped [21:32:17]ConnectInit Can't take IP for lk.salyk.kg [21:32:17]CommunicateWithHost connect error [21:32:17]CommunicateWithHost err = -1 [21:32:17]OFD Sender: Server communicate error [21:32:17]accept exits with 12 [21:32:17]New connection [21:32:17]New thread 3066617188 created [21:32:17]Thread 3066473828 joined [21:32:17]Waiting for new connection... [21:32:17] Sock 12.Parse request [21:32:17]Sock 12.Check first char [21:32:17]Sock 12.First char is OK [21:32:17]request: POST /json_proto HTTP/1.0 [21:32:17]Method: POST [21:32:17]URL: /json_proto [21:32:17]Method is POST - this is cgi request [21:32:17]url: /json_proto [21:32:17]query_string will be loaded in cgi processing [21:32:17]execute_cgi json_proto POST (null) [21:32:17]execute_cgi path=json_proto method=POST [21:32:17]POST find Content-Length [21:32:17]Host: 10.101.50.102:8080 [21:32:17]Content-Length: 678 [21:32:17]Content-Type: application/json [21:32:17] [21:32:17]POST finish read [21:32:17]Found Content-Length = 678 [21:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "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:32:17]execute_script... [21:32: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)281163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "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:32:17]POST & json_proto [21:32:17]process_json_proto [21:32:17]json parsed OK: [21:32:17]protocol is kg_v1.0 [21:32:17]action value=close_receipt [21:32:17]process_action close_receipt [21:32:17]cmd_close_receipt [21:32:17]MH_GetDate [21:32:17]Write to MH i2c: F0 00 00 FE 08 F5 [21:32:17]Write i2c OK [21:32:17]MH_I2C_Read... [21:32:17]Read from MH i2c: F0 [21:32:17]MH_I2C_Read... [21:32:17]Read from MH i2c: F0 09 00 [21:32:17]MH_I2C_Read... [21:32:17]Read from MH i2c: F0 09 00 FE 08 00 63 AC 8D 66 3C B9 F9 65 53 [21:32:17]GetLastDocTimeStamp 1720560726 [21:32:17]current date 1720560739 [21:32:17]FM_GetShiftState [21:32:17]SAM_PROTO_GetShiftState [21:32:17]wFMCommunicate request_size=4 [21:32:17]MH_SAM_APDU [21:32:17]CAPDU: 80 13 01 00 [21:32:17]Write to MH i2c: E2 08 00 FF 08 80 13 01 00 00 00 00 00 84 [21:32:17]Write i2c OK [21:32:17]MH_I2C_Read... [21:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:17]Read from MH i2c: E2 [21:32:17]MH_I2C_Read... [21:32:17]Read from MH i2c: E2 0E 00 [21:32:17]MH_I2C_Read... [21:32:17]Read from MH i2c: E2 0E 00 FF 08 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 92 [21:32:18]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:32:18]wFMCommunicate OK [21:32:18]SAM_PROTO_GetShiftState done [21:32:18]FM_GetShiftState done [21:32:18]opened in 1720484494 [21:32:18]opened+sec_in_day 1720570894 [21:32:18]quantity*price = 100044 [21:32:18]sum+1 = 100045 [21:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 339 09.07.2024 21:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27297 ФПД: 135570219979923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213219&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27297&fm=135570219979923&tin=00112200510239®Number=0000000000151136&sum=100000 [21:32:22]StoreToDocumentArchive [21:32:22]shift 114 fd 27297 [21:32:22]save to /storage/0114/doc_00027297 [21:32:22]save last doc name /storage/0114/doc_00027297 to /storage/kkm_last_doc_name [21:32:22]save OK [21:32:22]Clear old archive folders... [21:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:32:22]tlvbuf is 0060D5B0 [21:32:22]SAM_PROTO_ClearQueue [21:32:22]wFMCommunicate request_size=4 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 09 00 00 [21:32:22]Write to MH i2c: E2 08 00 0C 09 80 09 00 00 00 00 00 00 87 [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]SAM_PROTO_ClearQueue done [21:32:22]KKMCreateOFDPacket [21:32:22]OFDProtocolAddRootSTLVToBuf [21:32:22]FM_MakeSignedData [21:32:22]FM_MakeSignedData [21:32:22]SAM_PROTO_SignData [21:32:22]wFMCommunicate request_size=4 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 0D 01 02 [21:32:22]Write to MH i2c: E2 08 00 0D 09 80 0D 01 02 00 00 00 00 8F [21:32:22]OFD Sender: Processing packet 27177 [packets to send 132, broken 13] [21:32:22]ProducePacketName [21:32:22]name=ofd_packets/00027177 [21:32:22]OFD Sender: To server: pG, [21:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:22]CommunicateWithHost lk.salyk.kg:30040 [21:32:22]ConnectInit lk.salyk.kg [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]wFMCommunicate request_size=255 [21:32:22]MH_SAM_APDU [21:32: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 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 63 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A1 6A 00 00 35 04 06 00 7B 4C E6 CD [21:32:23]Write to MH i2c: E2 02 01 0E 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 63 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A1 6A 00 00 35 04 06 00 7B 4C E6 CD 00 00 32 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [21:32:24]RAPDU: 90 00 [21:32:24]wFMCommunicate OK [21:32:24]wFMCommunicate request_size=7 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 0D 02 02 02 D4 93 [21:32:24]Write to MH i2c: E2 0A 00 0F 09 80 0D 02 02 02 00 D4 93 00 00 FD [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:25]Read from MH i2c: E2 03 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [21:32:25]RAPDU: 90 00 [21:32:25]wFMCommunicate OK [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 0D 03 02 [21:32:25]Write to MH i2c: E2 08 00 10 09 80 0D 03 02 00 00 00 00 94 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0B 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0B 00 10 09 00 49 CA 0E EB 37 FA AF AB 90 00 2C [21:32:25]RAPDU: 49 CA 0E EB 37 FA AF AB 90 00 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_SignData done [21:32:25]FM_MakeSignedData done [21:32:25]CreateOFDProtocolMessage [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 11 00 00 [21:32:25]Write to MH i2c: E2 08 00 11 09 80 11 00 00 00 00 00 00 94 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 11 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 EB [21:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:32:25]wFMCommunicate OK [21:32:25]CreateOFDProtocolMessage done [21:32:25]OFDSenderStorePacket 27297 [21:32:25]StoreOFDPacket docnum=27297 [21:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0C 01 00 00 E7 79 04 01 BE 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 63 AC 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A1 6A 00 00 35 04 06 00 7B 4C E6 CD D4 93 49 CA 0E EB 37 FA AF AB [21:32:25]CheckFolder [21:32:25]dirname=/storage/ofd_packets [21:32:25]CheckFolder done [21:32:25]ProducePacketName [21:32:25]name=ofd_packets/00027297 [21:32:25]NVStorageSaveData ofd_packets/00027297 [21:32:25]File name is /storage/ofd_packets/00027297 [21:32:25]Write 298 bytes [21:32:25]NVStorageSaveData done [21:32:25]OFDSenderStorePacket done [21:32:25]KKMCreateOFDPacket done [21:32:25]NVStorageSaveData kkm_last_timestamp [21:32:25]File name is /storage/kkm_last_timestamp [21:32:25]Write 4 bytes [21:32:25]NVStorageSaveData done [21:32:25]ExternCall_PrintAddStr [21:32:25]wPrintStart [21:32:25]Write to MH i2c: 01 00 00 12 09 1B [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [21:32:25]RasterBufferAndPrint [21:32:25]line Счет N : (1)281163 [21:32:25]line ИНН: 00112200510239 [21:32:25]line Контрольно-Кассовый Чек [21:32:25]line ПРОДАЖА [21:32:25]line ТРК (МРК, ГНК) : 9 [21:32:25]line Товар: 2710194210 [21:32:25]line ДТ-К-5 [21:32:25]line 13.630 * 73.40 [21:32:25]line = 1000.44 [21:32:25]line НДС 12% НСП 1% [21:32:25]line > о реализуемом товаре [21:32:25]line ОКРУГЛЕНИЕ: -0.44 [21:32:25]line ИТОГО: 1000.00 [21:32:25]line Внесено: 1000.00 [21:32:25]line СДАЧА: 0.00 [21:32:25]line НСП 1% : 8.85 [21:32:25]line НДС 12% : 106.24 [21:32:25]line Наличными: 1000.00 [21:32:25]line Безнал.: 0.00 [21:32:25]line Место: АЗС № 50 "Bishkek Petroleum" [21:32:25]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:32:26]line СНО: Общий режим [21:32:26]line Чек 339 09.07.2024 21:32 [21:32:26]line Смена: 114 ФФД: 1.0 [21:32:26]line ЗНМ: 0300000229 [21:32:26]line РНМ: 0000000000151136 [21:32:26]line Версия ККМ: v1.0 [21:32:26]line ФМ: 0000000000959418 [21:32:26]line ФД: 27297 [21:32:26]line ФПД: 135570219979923 [21:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213219&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27297&fm=135570219979923&tin=00112200510239®Number=0000000000151136&sum=100000 [21:32:26]written 0, free lines is 4095 [21:32:26]Write to MH i2c: 01 00 00 3D 09 46 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 3D 09 00 00 00 00 00 B5 0C 0E [21:32:26]RasterBufferAndPrint [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]written 0, free lines is 3400 [21:32:26]MH_Cut [21:32:26]Write to MH i2c: D1 01 00 44 09 01 1F [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 01 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 01 00 44 09 00 1E [21:32:26]Write to MH i2c: 01 00 00 45 09 4E [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:27]*** Cut start [21:32:27]*** Partial cut [21:32:27]*** CUTSNS_PIN = 1 [21:32:27]*** CUTSNS_PIN = 0 [21:32:27]*** Brake cut motor [21:32:27]ConnectInit Can't take IP for lk.salyk.kg [21:32:27]CommunicateWithHost connect error [21:32:27]CommunicateWithHost err = -1 [21:32:27]OFD Sender: Server communicate error [21:32:27]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00027177 [21:32:27]OFD Sender: To server: pG, [21:32:27]CommunicateWithHost lk.salyk.kg:30040 [21:32:27]ConnectInit lk.salyk.kg [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:28]*** Stop cut motor [21:32:28]*** Cut end [21:32:28]Read from MH i2c: 01 07 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 FF 0F 63 [21:32:28]process_action close_receipt done [21:32:28]requested_data is exist [21:32:28]produce_requested_data [21:32:28]requested_item fm.sn is exist - process it [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 11 00 00 [21:32:28]Write to MH i2c: E2 08 00 46 09 80 11 00 00 00 00 00 00 C9 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 17 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 17 00 46 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 20 [21:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:32:28]wFMCommunicate OK [21:32:28]requested_item fd.num is exist - process it [21:32:28]SAM_PROTO_GetFieldsCounters [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 13 00 00 [21:32:28]Write to MH i2c: E2 08 00 47 09 80 13 00 00 00 00 00 00 CC [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 62 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 62 00 47 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A1 6A 00 00 0E 04 04 00 72 00 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 62 [21:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A1 6A 00 00 0E 04 04 00 72 00 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 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_GetFieldsCounters done [21:32:29]requested_item shift.num is exist - process it [21:32:29]requested_item shift.opened is exist - process it [21:32:29]req_shift_opened [21:32:29]FM_GetShiftState [21:32:29]SAM_PROTO_GetShiftState [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 13 01 00 [21:32:29]Write to MH i2c: E2 08 00 48 09 80 13 01 00 00 00 00 00 CE [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 48 09 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 DC [21:32:29]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_GetShiftState done [21:32:29]FM_GetShiftState done [21:32:29]req_shift_opened done [21:32:29]requested_item shift.open_date is exist - process it [21:32:29]req_shift_open_date [21:32:29]req_shift_open_date done [21:32:29]produce_requested_data done [21:32:29]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27297,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:32:29]process_action_free close_receipt [21:32:29]json_value_free [21:32:29]json_value_free done [21:32:29]process_json_proto returns [21:32:29]Send response to host [21:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27297,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:32:29]free response buf [21:32:29]execute_script done [21:32:29]execute_script returns [21:32:29]free content buf [21:32:29]Sock 12.Close socket [21:32:29]Sock 12.Thread stoped [21:32:32]ConnectInit Can't take IP for lk.salyk.kg [21:32:32]CommunicateWithHost connect error [21:32:32]CommunicateWithHost err = -1 [21:32:32]OFD Sender: Server communicate error [21:32:37]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:32:37]ProducePacketName [21:32:37]name=ofd_packets/00027177 [21:32:37]OFD Sender: To server: pG, [21:32:37]CommunicateWithHost lk.salyk.kg:30040 [21:32:37]ConnectInit lk.salyk.kg [21:32:42]ConnectInit Can't take IP for lk.salyk.kg [21:32:42]CommunicateWithHost connect error [21:32:43]CommunicateWithHost err = -1 [21:32:43]OFD Sender: Server communicate error [21:32:48]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:32:48]ProducePacketName [21:32:48]name=ofd_packets/00027177 [21:32:48]OFD Sender: To server: pG, [21:32:48]CommunicateWithHost lk.salyk.kg:30040 [21:32:48]ConnectInit lk.salyk.kg [21:32:53]ConnectInit Can't take IP for lk.salyk.kg [21:32:53]CommunicateWithHost connect error [21:32:53]CommunicateWithHost err = -1 [21:32:53]OFD Sender: Server communicate error [21:32:58]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:32:58]ProducePacketName [21:32:58]name=ofd_packets/00027177 [21:32:58]OFD Sender: To server: pG, [21:32:58]CommunicateWithHost lk.salyk.kg:30040 [21:32:58]ConnectInit lk.salyk.kg [21:33:03]ConnectInit Can't take IP for lk.salyk.kg [21:33:03]CommunicateWithHost connect error [21:33:03]CommunicateWithHost err = -1 [21:33:03]OFD Sender: Server communicate error [21:33:08]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:08]ProducePacketName [21:33:08]name=ofd_packets/00027177 [21:33:08]OFD Sender: To server: pG, [21:33:08]CommunicateWithHost lk.salyk.kg:30040 [21:33:08]ConnectInit lk.salyk.kg [21:33:13]ConnectInit Can't take IP for lk.salyk.kg [21:33:13]CommunicateWithHost connect error [21:33:13]CommunicateWithHost err = -1 [21:33:13]OFD Sender: Server communicate error [21:33:18]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:18]ProducePacketName [21:33:18]name=ofd_packets/00027177 [21:33:18]OFD Sender: To server: pG, [21:33:18]CommunicateWithHost lk.salyk.kg:30040 [21:33:18]ConnectInit lk.salyk.kg [21:33:23]ConnectInit Can't take IP for lk.salyk.kg [21:33:23]CommunicateWithHost connect error [21:33:23]CommunicateWithHost err = -1 [21:33:23]OFD Sender: Server communicate error [21:33:28]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:28]ProducePacketName [21:33:28]name=ofd_packets/00027177 [21:33:28]OFD Sender: To server: pG, [21:33:28]CommunicateWithHost lk.salyk.kg:30040 [21:33:28]ConnectInit lk.salyk.kg [21:33:33]ConnectInit Can't take IP for lk.salyk.kg [21:33:33]CommunicateWithHost connect error [21:33:33]CommunicateWithHost err = -1 [21:33:33]OFD Sender: Server communicate error [21:33:38]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:38]ProducePacketName [21:33:38]name=ofd_packets/00027177 [21:33:38]OFD Sender: To server: pG, [21:33:38]CommunicateWithHost lk.salyk.kg:30040 [21:33:38]ConnectInit lk.salyk.kg [21:33:43]ConnectInit Can't take IP for lk.salyk.kg [21:33:43]CommunicateWithHost connect error [21:33:43]CommunicateWithHost err = -1 [21:33:43]OFD Sender: Server communicate error [21:33:48]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:48]ProducePacketName [21:33:48]name=ofd_packets/00027177 [21:33:48]OFD Sender: To server: pG, [21:33:48]CommunicateWithHost lk.salyk.kg:30040 [21:33:48]ConnectInit lk.salyk.kg [21:33:53]ConnectInit Can't take IP for lk.salyk.kg [21:33:53]CommunicateWithHost connect error [21:33:53]CommunicateWithHost err = -1 [21:33:53]OFD Sender: Server communicate error [21:33:58]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:33:58]ProducePacketName [21:33:58]name=ofd_packets/00027177 [21:33:58]OFD Sender: To server: pG, [21:33:58]CommunicateWithHost lk.salyk.kg:30040 [21:33:58]ConnectInit lk.salyk.kg [21:34:03]ConnectInit Can't take IP for lk.salyk.kg [21:34:03]CommunicateWithHost connect error [21:34:03]CommunicateWithHost err = -1 [21:34:03]OFD Sender: Server communicate error [21:34:08]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:08]ProducePacketName [21:34:08]name=ofd_packets/00027177 [21:34:08]OFD Sender: To server: pG, [21:34:08]CommunicateWithHost lk.salyk.kg:30040 [21:34:08]ConnectInit lk.salyk.kg [21:34:13]ConnectInit Can't take IP for lk.salyk.kg [21:34:13]CommunicateWithHost connect error [21:34:13]CommunicateWithHost err = -1 [21:34:13]OFD Sender: Server communicate error [21:34:18]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:18]ProducePacketName [21:34:18]name=ofd_packets/00027177 [21:34:18]OFD Sender: To server: pG, [21:34:18]CommunicateWithHost lk.salyk.kg:30040 [21:34:18]ConnectInit lk.salyk.kg [21:34:23]ConnectInit Can't take IP for lk.salyk.kg [21:34:23]CommunicateWithHost connect error [21:34:23]CommunicateWithHost err = -1 [21:34:23]OFD Sender: Server communicate error [21:34:28]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:28]ProducePacketName [21:34:28]name=ofd_packets/00027177 [21:34:28]OFD Sender: To server: pG, [21:34:28]CommunicateWithHost lk.salyk.kg:30040 [21:34:28]ConnectInit lk.salyk.kg [21:34:31]ConnectInit Can't connect to host [21:34:33]ConnectInit Can't take IP for lk.salyk.kg [21:34:33]CommunicateWithHost connect error [21:34:33]CommunicateWithHost err = -1 [21:34:33]OFD Sender: Server communicate error [21:34:38]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:38]ProducePacketName [21:34:38]name=ofd_packets/00027177 [21:34:38]OFD Sender: To server: pG, [21:34:38]CommunicateWithHost lk.salyk.kg:30040 [21:34:38]ConnectInit lk.salyk.kg [21:34:43]ConnectInit Can't take IP for lk.salyk.kg [21:34:43]CommunicateWithHost connect error [21:34:43]CommunicateWithHost err = -1 [21:34:43]OFD Sender: Server communicate error [21:34:48]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:48]ProducePacketName [21:34:48]name=ofd_packets/00027177 [21:34:48]OFD Sender: To server: pG, [21:34:48]CommunicateWithHost lk.salyk.kg:30040 [21:34:48]ConnectInit lk.salyk.kg [21:34:53]ConnectInit Can't take IP for lk.salyk.kg [21:34:53]CommunicateWithHost connect error [21:34:53]CommunicateWithHost err = -1 [21:34:53]OFD Sender: Server communicate error [21:34:58]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:34:58]ProducePacketName [21:34:58]name=ofd_packets/00027177 [21:34:58]OFD Sender: To server: pG, [21:34:58]CommunicateWithHost lk.salyk.kg:30040 [21:34:58]ConnectInit lk.salyk.kg [21:35:03]ConnectInit Can't take IP for lk.salyk.kg [21:35:03]CommunicateWithHost connect error [21:35:03]CommunicateWithHost err = -1 [21:35:03]OFD Sender: Server communicate error [21:35:08]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:35:08]ProducePacketName [21:35:08]name=ofd_packets/00027177 [21:35:08]OFD Sender: To server: pG, [21:35:08]CommunicateWithHost lk.salyk.kg:30040 [21:35:08]ConnectInit lk.salyk.kg [21:35:13]ConnectInit Can't take IP for lk.salyk.kg [21:35:13]CommunicateWithHost connect error [21:35:13]CommunicateWithHost err = -1 [21:35:13]OFD Sender: Server communicate error [21:35:18]OFD Sender: Processing packet 27177 [packets to send 133, broken 13] [21:35:18]ProducePacketName [21:35:18]name=ofd_packets/00027177 [21:35:18]OFD Sender: To server: pG, [21:35:18]CommunicateWithHost lk.salyk.kg:30040 [21:35:18]ConnectInit lk.salyk.kg [21:35:23]ConnectInit Can't take IP for lk.salyk.kg [21:35:23]CommunicateWithHost connect error [21:35:23]CommunicateWithHost err = -1 [21:35:23]OFD Sender: Server communicate error [21:35:24]accept exits with 8 [21:35:24]New connection [21:35:24]New thread 3066473828 created [21:35:24]Thread 3066617188 joined [21:35:24]Waiting for new connection... [21:35:24] Sock 8.Parse request [21:35:24]Sock 8.Check first char [21:35:24]Sock 8.First char is OK [21:35:24]request: POST /json_proto HTTP/1.0 [21:35:24]Method: POST [21:35:24]URL: /json_proto [21:35:24]Method is POST - this is cgi request [21:35:24]url: /json_proto [21:35:24]query_string will be loaded in cgi processing [21:35:24]execute_cgi json_proto POST (null) [21:35:24]execute_cgi path=json_proto method=POST [21:35:24]POST find Content-Length [21:35:24]Host: 10.101.50.102:8080 [21:35:24]Content-Length: 770 [21:35:24]Content-Type: application/json [21:35:24] [21:35:24]POST finish read [21:35:24]Found Content-Length = 770 [21:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 4.040, "sum" : 300.58, "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: Bakai Bank", "payments": [ { "type": 1, "sum" : 300.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]execute_script... [21:35: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)281164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 4.040, "sum" : 300.58, "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: Bakai Bank", "payments": [ { "type": 1, "sum" : 300.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]POST & json_proto [21:35:24]process_json_proto [21:35:24]json parsed OK: [21:35:25]protocol is kg_v1.0 [21:35:25]action value=close_receipt [21:35:25]process_action close_receipt [21:35:25]cmd_close_receipt [21:35:25]MH_GetDate [21:35:25]Write to MH i2c: F0 00 00 49 09 41 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: F0 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: F0 09 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: F0 09 00 49 09 00 1E AD 8D 66 3C B9 F9 65 5B [21:35:25]GetLastDocTimeStamp 1720560739 [21:35:25]current date 1720560926 [21:35:25]FM_GetShiftState [21:35:25]SAM_PROTO_GetShiftState [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 13 01 00 [21:35:25]Write to MH i2c: E2 08 00 4A 09 80 13 01 00 00 00 00 00 D0 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:25]Read from MH i2c: E2 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 0E 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: E2 0E 00 4A 09 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 DE [21:35:25]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:35:25]wFMCommunicate OK [21:35:25]SAM_PROTO_GetShiftState done [21:35:25]FM_GetShiftState done [21:35:25]opened in 1720484494 [21:35:25]opened+sec_in_day 1720570894 [21:35:25]quantity*price = 30057 [21:35:25]sum+1 = 30059 [21:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.58 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.58 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 340 09.07.2024 21:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 Платежная система: Bakai Bank ФМ: 0000000000959418 ФД: 27298 ФПД: 48884222739530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213526&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27298&fm=48884222739530&tin=00112200510239®Number=0000000000151136&sum=30058 [21:35:29]StoreToDocumentArchive [21:35:29]shift 114 fd 27298 [21:35:29]save to /storage/0114/doc_00027298 [21:35:29]save last doc name /storage/0114/doc_00027298 to /storage/kkm_last_doc_name [21:35:29]save OK [21:35:29]Clear old archive folders... [21:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:29]tlvbuf is 00677690 [21:35:29]SAM_PROTO_ClearQueue [21:35:29]wFMCommunicate request_size=4 [21:35:29]MH_SAM_APDU [21:35:29]CAPDU: 80 09 00 00 [21:35:29]Write to MH i2c: E2 08 00 57 09 80 09 00 00 00 00 00 00 D2 [21:35:29]Write i2c OK [21:35:29]MH_I2C_Read... [21:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:29]Read from MH i2c: E2 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 03 00 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [21:35:29]RAPDU: 90 00 [21:35:29]wFMCommunicate OK [21:35:29]SAM_PROTO_ClearQueue done [21:35:29]KKMCreateOFDPacket [21:35:29]OFDProtocolAddRootSTLVToBuf [21:35:29]FM_MakeSignedData [21:35:29]FM_MakeSignedData [21:35:29]SAM_PROTO_SignData [21:35:29]wFMCommunicate request_size=4 [21:35:29]MH_SAM_APDU [21:35:29]CAPDU: 80 0D 01 02 [21:35:30]Write to MH i2c: E2 08 00 58 09 80 0D 01 02 00 00 00 00 DA [21:35:30]Write i2c OK [21:35:30]MH_I2C_Read... [21:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:30]Read from MH i2c: E2 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 03 00 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [21:35:30]RAPDU: 90 00 [21:35:30]wFMCommunicate OK [21:35:30]wFMCommunicate request_size=255 [21:35:30]MH_SAM_APDU [21:35: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 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1E AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A2 6A 00 00 35 04 06 00 2C [21:35:31]Write to MH i2c: E2 02 01 59 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1E AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A2 6A 00 00 35 04 06 00 2C 00 00 D1 [21:35:31]Write i2c OK [21:35:31]MH_I2C_Read... [21:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:32]Read from MH i2c: E2 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 03 00 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [21:35:32]RAPDU: 90 00 [21:35:32]wFMCommunicate OK [21:35:32]wFMCommunicate request_size=10 [21:35:32]MH_SAM_APDU [21:35:32]CAPDU: 80 0D 02 02 05 75 BE BB 44 4A [21:35:32]Write to MH i2c: E2 0D 00 5A 09 80 0D 02 02 05 00 75 BE BB 44 4A 00 00 63 [21:35:32]Write i2c OK [21:35:32]MH_I2C_Read... [21:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:32]Read from MH i2c: E2 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 03 00 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [21:35:32]RAPDU: 90 00 [21:35:32]wFMCommunicate OK [21:35:32]wFMCommunicate request_size=4 [21:35:32]MH_SAM_APDU [21:35:32]CAPDU: 80 0D 03 02 [21:35:32]Write to MH i2c: E2 08 00 5B 09 80 0D 03 02 00 00 00 00 DF [21:35:32]Write i2c OK [21:35:32]MH_I2C_Read... [21:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:32]Read from MH i2c: E2 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 0B 00 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 0B 00 5B 09 00 30 65 3D 7B 48 5C 80 96 90 00 E7 [21:35:32]RAPDU: 30 65 3D 7B 48 5C 80 96 90 00 [21:35:32]wFMCommunicate OK [21:35:32]SAM_PROTO_SignData done [21:35:32]FM_MakeSignedData done [21:35:32]CreateOFDProtocolMessage [21:35:32]wFMCommunicate request_size=4 [21:35:32]MH_SAM_APDU [21:35:32]CAPDU: 80 11 00 00 [21:35:32]Write to MH i2c: E2 08 00 5C 09 80 11 00 00 00 00 00 00 DF [21:35:32]Write i2c OK [21:35:32]MH_I2C_Read... [21:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:32]Read from MH i2c: E2 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 17 00 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 17 00 5C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 36 [21:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:35:33]wFMCommunicate OK [21:35:33]CreateOFDProtocolMessage done [21:35:33]OFDSenderStorePacket 27298 [21:35:33]StoreOFDPacket docnum=27298 [21:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0F 01 00 00 9E 1D 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1E AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A2 6A 00 00 35 04 06 00 2C 75 BE BB 44 4A 30 65 3D 7B 48 5C 80 96 [21:35:33]CheckFolder [21:35:33]dirname=/storage/ofd_packets [21:35:33]CheckFolder done [21:35:33]ProducePacketName [21:35:33]name=ofd_packets/00027298 [21:35:33]NVStorageSaveData ofd_packets/00027298 [21:35:33]File name is /storage/ofd_packets/00027298 [21:35:33]Write 301 bytes [21:35:33]NVStorageSaveData done [21:35:33]OFDSenderStorePacket done [21:35:33]KKMCreateOFDPacket done [21:35:33]NVStorageSaveData kkm_last_timestamp [21:35:33]File name is /storage/kkm_last_timestamp [21:35:33]Write 4 bytes [21:35:33]NVStorageSaveData done [21:35:33]ExternCall_PrintAddStr [21:35:33]wPrintStart [21:35:33]Write to MH i2c: 01 00 00 5D 09 66 [21:35:33]Write i2c OK [21:35:33]MH_I2C_Read... [21:35:33]Read from MH i2c: 01 [21:35:33]MH_I2C_Read... [21:35:33]Read from MH i2c: 01 07 00 [21:35:33]MH_I2C_Read... [21:35:33]Read from MH i2c: 01 07 00 5D 09 00 00 00 00 00 FF 0F 7B [21:35:33]RasterBufferAndPrint [21:35:33]line Счет N : (1)281164 [21:35:33]line ИНН: 00112200510239 [21:35:33]line Контрольно-Кассовый Чек [21:35:33]line ПРОДАЖА [21:35:33]line ТРК (МРК, ГНК) : 3 [21:35:33]line Товар: 2710124500 [21:35:33]line Аи-95-К-5 [21:35:33]line 4.040 * 74.40 [21:35:33]line = 300.58 [21:35:33]line НДС 12% НСП 1% [21:35:33]line > о реализуемом товаре [21:35:33]line ИТОГО: 300.58 [21:35:33]line НСП 1% : 2.66 [21:35:33]line НДС 12% : 31.92 [21:35:33]line Наличными: 0.00 [21:35:33]line Безнал.: 300.58 [21:35:33]line Место: АЗС № 50 "Bishkek Petroleum" [21:35:33]line Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 [21:35:33]line СНО: Общий режим [21:35:33]line Чек 340 09.07.2024 21:35 [21:35:33]line Смена: 114 ФФД: 1.0 [21:35:33]line ЗНМ: 0300000229 [21:35:33]line РНМ: 0000000000151136 [21:35:33]line Версия ККМ: v1.0 [21:35:33]line Платежная система: Bakai Bank [21:35:33]line ФМ: 0000000000959418 [21:35:33]line ФД: 27298 [21:35:33]line ФПД: 48884222739530 [21:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213526&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27298&fm=48884222739530&tin=00112200510239®Number=0000000000151136&sum=30058 [21:35:33]written 0, free lines is 4095 [21:35:33]ConnectInit Can't take IP for lk.salyk.kg [21:35:33]CommunicateWithHost connect error [21:35:33]CommunicateWithHost err = -1 [21:35:33]OFD Sender: Server communicate error [21:35:33]Write to MH i2c: 01 00 00 87 09 90 [21:35:33]Write i2c OK [21:35:33]MH_I2C_Read... [21:35:33]Read from MH i2c: 01 [21:35:33]MH_I2C_Read... [21:35:33]Read from MH i2c: 01 07 00 [21:35:33]MH_I2C_Read... [21:35:33]OFD Sender: Processing packet 27177 [packets to send 134, broken 13] [21:35:33]ProducePacketName [21:35:33]name=ofd_packets/00027177 [21:35:33]OFD Sender: To server: pG, [21:35:34]CommunicateWithHost lk.salyk.kg:30040 [21:35:34]ConnectInit lk.salyk.kg [21:35:34]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 E3 0C 86 [21:35:34]RasterBufferAndPrint [21:35:34]line [21:35:34]line [21:35:34]line [21:35:34]line [21:35:34]line [21:35:34]written 0, free lines is 3491 [21:35:34]MH_Cut [21:35:34]Write to MH i2c: D1 01 00 8E 09 01 69 [21:35:34]Write i2c OK [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: D1 [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: D1 01 00 [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: D1 01 00 8E 09 00 68 [21:35:34]Write to MH i2c: 01 00 00 8F 09 98 [21:35:34]Write i2c OK [21:35:34]MH_I2C_Read... [21:35:34]*** Cut start [21:35:34]*** Partial cut [21:35:34]*** CUTSNS_PIN = 1 [21:35:34]*** CUTSNS_PIN = 0 [21:35:35]*** Brake cut motor [21:35:35]Read from MH i2c: 01 [21:35:35]MH_I2C_Read... [21:35:35]*** Stop cut motor [21:35:35]*** Cut end [21:35:35]Read from MH i2c: 01 07 00 [21:35:35]MH_I2C_Read... [21:35:35]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [21:35:35]process_action close_receipt done [21:35:35]requested_data is exist [21:35:35]produce_requested_data [21:35:35]requested_item fm.sn is exist - process it [21:35:35]wFMCommunicate request_size=4 [21:35:35]MH_SAM_APDU [21:35:35]CAPDU: 80 11 00 00 [21:35:35]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [21:35:35]Write i2c OK [21:35:35]MH_I2C_Read... [21:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:35]Read from MH i2c: E2 [21:35:35]MH_I2C_Read... [21:35:35]Read from MH i2c: E2 17 00 [21:35:35]MH_I2C_Read... [21:35:35]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 6A [21:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:35:35]wFMCommunicate OK [21:35:35]requested_item fd.num is exist - process it [21:35:35]SAM_PROTO_GetFieldsCounters [21:35:35]wFMCommunicate request_size=4 [21:35:35]MH_SAM_APDU [21:35:35]CAPDU: 80 13 00 00 [21:35:35]Write to MH i2c: E2 08 00 91 09 80 13 00 00 00 00 00 00 16 [21:35:35]Write i2c OK [21:35:35]MH_I2C_Read... [21:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:36]Read from MH i2c: E2 [21:35:36]MH_I2C_Read... [21:35:36]Read from MH i2c: E2 62 00 [21:35:36]MH_I2C_Read... [21:35:36]Read from MH i2c: E2 62 00 91 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A2 6A 00 00 0E 04 04 00 72 00 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 B0 [21:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 10 04 04 00 A2 6A 00 00 0E 04 04 00 72 00 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 [21:35:36]wFMCommunicate OK [21:35:36]SAM_PROTO_GetFieldsCounters done [21:35:36]requested_item shift.num is exist - process it [21:35:36]requested_item shift.opened is exist - process it [21:35:36]req_shift_opened [21:35:36]FM_GetShiftState [21:35:36]SAM_PROTO_GetShiftState [21:35:36]wFMCommunicate request_size=4 [21:35:36]MH_SAM_APDU [21:35:36]CAPDU: 80 13 01 00 [21:35:36]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [21:35:36]Write i2c OK [21:35:36]MH_I2C_Read... [21:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:36]Read from MH i2c: E2 [21:35:36]MH_I2C_Read... [21:35:36]Read from MH i2c: E2 0E 00 [21:35:36]MH_I2C_Read... [21:35:36]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 26 [21:35:37]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:35:37]wFMCommunicate OK [21:35:37]SAM_PROTO_GetShiftState done [21:35:37]FM_GetShiftState done [21:35:37]req_shift_opened done [21:35:37]requested_item shift.open_date is exist - process it [21:35:37]req_shift_open_date [21:35:37]req_shift_open_date done [21:35:37]produce_requested_data done [21:35:37]produce_requested_data return {"fm.sn":"0000000000959418","fd.num":27298,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494} [21:35:37]process_action_free close_receipt [21:35:37]json_value_free [21:35:37]json_value_free done [21:35:37]process_json_proto returns [21:35:37]Send response to host [21:35:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959418","fd.num":27298,"shift.num":114,"shift.opened":1,"shift.open_date":1720484494}}} [21:35:37]free response buf [21:35:37]execute_script done [21:35:37]execute_script returns [21:35:37]free content buf [21:35:37]Sock 8.Close socket [21:35:37]Sock 8.Thread stoped [21:35:39]ConnectInit Can't take IP for lk.salyk.kg [21:35:39]CommunicateWithHost connect error [21:35:39]CommunicateWithHost err = -1 [21:35:39]OFD Sender: Server communicate error [21:35:40]accept exits with 10 [21:35:40]New connection [21:35:40]New thread 3066617188 created [21:35:40]Thread 3066473828 joined [21:35:40]Waiting for new connection... [21:35:40] Sock 10.Parse request [21:35:40]Sock 10.Check first char [21:35:40]Sock 10.First char is OK [21:35:40]request: POST /json_proto HTTP/1.0 [21:35:40]Method: POST [21:35:40]URL: /json_proto [21:35:40]Method is POST - this is cgi request [21:35:40]url: /json_proto [21:35:40]query_string will be loaded in cgi processing [21:35:40]execute_cgi json_proto POST (null) [21:35:40]execute_cgi path=json_proto method=POST [21:35:40]POST find Content-Length [21:35:40]Host: 10.101.50.102:8080 [21:35:40]Content-Length: 678 [21:35:40]Content-Type: application/json [21:35:40] [21:35:40]POST finish read [21:35:40]Found Content-Length = 678 [21:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)281165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "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:35:40]execute_script... [21: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)281165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 9", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "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:35:40]POST & json_proto [21:35:40]process_json_proto [21:35:40]json parsed OK: [21:35:40]protocol is kg_v1.0 [21:35:40]action value=close_receipt [21:35:40]process_action close_receipt [21:35:40]cmd_close_receipt [21:35:40]MH_GetDate [21:35:40]Write to MH i2c: F0 00 00 93 09 8B [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: F0 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: F0 09 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: F0 09 00 93 09 00 2D AD 8D 66 3C B9 F9 65 B4 [21:35:40]GetLastDocTimeStamp 1720560926 [21:35:40]current date 1720560941 [21:35:40]FM_GetShiftState [21:35:40]SAM_PROTO_GetShiftState [21:35:40]wFMCommunicate request_size=4 [21:35:40]MH_SAM_APDU [21:35:40]CAPDU: 80 13 01 00 [21:35:40]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:40]Read from MH i2c: E2 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: E2 0E 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 8E 82 8C 66 00 00 00 00 90 00 28 [21:35:40]RAPDU: 09 00 01 8E 82 8C 66 00 00 00 00 90 00 [21:35:40]wFMCommunicate OK [21:35:40]SAM_PROTO_GetShiftState done [21:35:40]FM_GetShiftState done [21:35:40]opened in 1720484494 [21:35:40]opened+sec_in_day 1720570894 [21:35:40]quantity*price = 100044 [21:35:40]sum+1 = 100045 [21:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 50 "Bishkek Petroleum" Адрес: 720000, с. Бостери, Иссык Кульский район, 42.657538, 77.202650 СНО: Общий режим Чек 341 09.07.2024 21:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000229 РНМ: 0000000000151136 Версия ККМ: v1.0 ФМ: 0000000000959418 ФД: 27299 ФПД: 76670300430728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240709T213541&type=1&operation_type=1&fn_number=0000000000959418&fd_number=27299&fm=76670300430728&tin=00112200510239®Number=0000000000151136&sum=100000 [21:35:45]StoreToDocumentArchive [21:35:45]shift 114 fd 27299 [21:35:45]save to /storage/0114/doc_00027299 [21:35:45]save last doc name /storage/0114/doc_00027299 to /storage/kkm_last_doc_name [21:35:45]save OK [21:35:45]Clear old archive folders... [21:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:35:45]tlvbuf is 0069FE70 [21:35:45]SAM_PROTO_ClearQueue [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 09 00 00 [21:35:45]Write to MH i2c: E2 08 00 A1 09 80 09 00 00 00 00 00 00 1C [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 03 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [21:35:45]RAPDU: 90 00 [21:35:45]wFMCommunicate OK [21:35:45]SAM_PROTO_ClearQueue done [21:35:45]KKMCreateOFDPacket [21:35:45]OFDProtocolAddRootSTLVToBuf [21:35:45]FM_MakeSignedData [21:35:45]FM_MakeSignedData [21:35:45]SAM_PROTO_SignData [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 0D 01 02 [21:35:45]Write to MH i2c: E2 08 00 A2 09 80 0D 01 02 00 00 00 00 24 [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 03 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [21:35:45]RAPDU: 90 00 [21:35:45]wFMCommunicate OK [21:35:45]wFMCommunicate request_size=255 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 2D AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A3 6A 00 00 35 04 06 00 45 BB 32 05 [21:35:46]Write to MH i2c: E2 02 01 A3 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 2D AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A3 6A 00 00 35 04 06 00 45 BB 32 05 00 00 53 [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 03 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [21:35:47]RAPDU: 90 00 [21:35:47]wFMCommunicate OK [21:35:47]wFMCommunicate request_size=7 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 0D 02 02 02 A1 88 [21:35:47]Write to MH i2c: E2 0A 00 A4 09 80 0D 02 02 02 00 A1 88 00 00 54 [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 03 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [21:35:47]RAPDU: 90 00 [21:35:47]wFMCommunicate OK [21:35:47]wFMCommunicate request_size=4 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 0D 03 02 [21:35:47]Write to MH i2c: E2 08 00 A5 09 80 0D 03 02 00 00 00 00 29 [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0B 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0B 00 A5 09 00 2D 77 1B BF 00 79 FC 31 90 00 4E [21:35:48]RAPDU: 2D 77 1B BF 00 79 FC 31 90 00 [21:35:48]wFMCommunicate OK [21:35:48]SAM_PROTO_SignData done [21:35:48]FM_MakeSignedData done [21:35:48]CreateOFDProtocolMessage [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 11 00 00 [21:35:48]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 17 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 80 [21:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 90 00 [21:35:48]wFMCommunicate OK [21:35:48]CreateOFDProtocolMessage done [21:35:48]OFDSenderStorePacket 27299 [21:35:48]StoreOFDPacket docnum=27299 [21:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 0C 01 00 00 B8 62 04 01 E7 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 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 2D AD 8D 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 31 33 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 38 10 04 04 00 A3 6A 00 00 35 04 06 00 45 BB 32 05 A1 88 2D 77 1B BF 00 79 FC 31 [21:35:48]CheckFolder [21:35:48]dirname=/storage/ofd_packets [21:35:48]CheckFolder done [21:35:48]ProducePacketName [21:35:48]name=ofd_packets/00027299 [21:35:48]NVStorageSaveData ofd_packets/00027299 [21:35:48]File name is /storage/ofd_packets/00027299 [21:35:48]Write 298 bytes [21:35:48]NVStorageSaveData done [21:35:48]OFDSenderStorePacket done [21:35:48]KKMCreateOFDPacket done [21:35:48]NVStorageSaveData kkm_last_timestamp [21:35:48]File name is /storage/kkm_last_timestamp [21:35:48]Write 4 bytes [21:35:48]NVStorageSaveData done [21:35:48]ExternCall_PrintAddStr [21:35:48]wPrintStart [21:35:48]Write to MH i2c: 01 00 00 A7 09 B0 [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 07 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [21:35:48]RasterBufferAndPrint [21:35:48]line Счет N : (1)281165 [21:35:48]line ИНН: 00112200510239 [21:35:48]line Контрольно-Кассовый Чек [21:35:48]line ПРОДАЖА [21:35:48]line ТРК (МРК, ГНК) : 9 [21:35:48]line Товар: 2710194210 [21:35:48]line ДТ-К-5 [21:35:48]line 13.630 * 73.40 [21:35:48]line = 1000.44 [21:35:48]line НДС 12% НСП 1% [21:35:48]line > о реализуемом товаре [21:35:48]line ОКРУГЛЕНИЕ: -0.44 [21:35:48]line ИТОГО: 1000.00 [21:35:48]line Внесено: 1000.00 [21:35:48]line СДАЧА: 0.00 [21:35:48]line НСП 1% : 8.85 [21:35:48]line НДС 12% : 106.24