shtrih-m / fr_drv_ng_examples

Примеры использования https://github.com/shtrih-m/fr_drv_ng
10 stars 2 forks source link

Печать чека при продаже #38

Closed DmitryBoychuk closed 2 years ago

DmitryBoychuk commented 2 years ago

Пытаюсь напчатать чек при продаже товара, но чек не печается хотя все команды отрабатывают корректно. В итоге аналогичная ситуация и при продаже примера самой библиотеки. Лог прикладываю:

[6695] [classic_interface_0x8158a440 ] [T] Set_Password(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Password() ok [6695] [classic_interface_0x8158a440 ] [T] Set_SysAdminPassword(30) [6695] [classic_interface_0x8158a440 ] [T] Set_SysAdminPassword() ok [6695] [classic_interface_0x8158a440 ] [T] Set_ConnectionURI(tcp://127.0.0.1:12345?timeout=15000&protocol=v2) [6695] [isConnectUriValid ] [I] io_url looks good [6695] [classic_interface_0x8158a440 ] [T] Set_ConnectionURI() ok [6695] [classic_interface_0x8158a440 ] [T] Connect() [6695] [getIoFromString ] [I] io_url looks good: tcp://127.0.0.1:12345?timeout=15000&protocol=v2 [6695] [getIoFromString ] [I] type: tcp [6695] [getIoFromString ] [I] path: 127.0.0.1 [6695] [getProtocolFromString ] [I] protocol v2 [6695] [getTimeout ] [I] timeout: 15000 [6695] [ProtocolV2_0x82c4fb60 ] [I] timeout: 15000 [6695] [TcpSocketIO_0x984de860 ] [I] IO timeout = 15000ms [6695] [TcpSocketIO_0x984de860 ] [I] open() true [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 00 00 0F 1D [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 02 00 01 00 99 5A [6695] [ProtocolV2_0x82c4fb60 ] [D] command 0 return code: 0 execution took 5ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 1, succeed: 1, failed: 0, avg. exec time: 5ms [6695] [ProtocolV2_0x82c4fb60 ] [I] connect() true [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 03 00 02 00 FC 2D BF [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 1C 00 02 00 FC 00 00 00 02 00 2D 00 50 4F 53 43 45 4E 54 45 52 20 42 41 4E 4B 2D 30 31 D4 BF F0 [6695] [ProtocolV2_0x82c4fb60 ] [D] command FC return code: 0 execution took 1ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 2, succeed: 2, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 07 00 03 00 11 01 00 00 00 E4 A9 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 34 00 03 00 11 00 01 43 32 80 A2 0A 07 16 01 05 00 90 00 02 00 80 4E 41 00 00 01 01 10 01 09 16 0F 13 15 00 83 00 00 00 00 00 00 00 00 00 15 B4 22 CD 01 00 00 00 A3 B2 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 11 return code: 0 execution took 3ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 3, succeed: 3, failed: 0, avg. exec time: 3ms [6695] [classic_interface_0x8158a440 ] [I] model: 45 [6695] [classic_interface_0x8158a440 ] [I] desciption: POSCENTER BANK-01Ф [6695] [classic_interface_0x8158a440 ] [I] fw_date: 2022-07-10T00:00:00 [6695] [classic_interface_0x8158a440 ] [T] Connect() ok [6695] [classic_interface_0x8158a440 ] [T] Set_WaitForPrintingDelay(20) [6695] [classic_interface_0x8158a440 ] [T] Set_WaitForPrintingDelay() ok [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() -> 2 [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() -> 2 [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() [6695] [classic_interface_0x8158a440 ] [T] Get_ECRMode() -> 2 [6695] [classic_interface_0x8158a440 ] [T] WaitForPrinting() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 03 00 04 00 FC 8D 0D [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 1C 00 04 00 FC 00 00 00 02 00 2D 00 50 4F 53 43 45 4E 54 45 52 20 42 41 4E 4B 2D 30 31 D4 C7 2B [6695] [ProtocolV2_0x82c4fb60 ] [D] command FC return code: 0 execution took 1ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 4, succeed: 4, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 04 00 05 00 F7 01 83 2E [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 29 00 05 00 F7 00 08 00 C0 F7 3F 28 03 00 00 00 01 0C 0A 00 00 00 00 00 00 1E 00 00 00 00 06 AF 05 28 00 00 00 0D 0E 10 0A 1D 11 AB 0E [6695] [ProtocolV2_0x82c4fb60 ] [D] command F7 return code: 0 execution took 5ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 5, succeed: 5, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 07 00 06 00 11 1E 00 00 00 0A 1F [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 34 00 06 00 11 00 1E 43 32 80 A2 0A 07 16 01 05 00 90 00 02 00 80 4E 41 00 00 01 01 10 01 09 16 0F 13 15 00 83 00 00 00 00 00 00 00 00 00 15 B4 22 CD 01 00 00 00 16 E8 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 11 return code: 0 execution took 3ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 6, succeed: 6, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 07 00 26 1E 00 00 00 01 50 0F [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 07 00 26 00 80 01 0C 19 06 98 28 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 1ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 7, succeed: 7, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 08 00 26 1E 00 00 00 02 F1 E6 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 08 00 26 00 80 01 18 2D 06 3E E6 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 2ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 8, succeed: 8, failed: 0, avg. exec time: 3ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 09 00 26 1E 00 00 00 03 03 B1 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 09 00 26 00 80 01 0C 13 06 24 B4 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 1ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 9, succeed: 9, failed: 0, avg. exec time: 2ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 0A 00 26 1E 00 00 00 04 91 09 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 0A 00 26 00 80 01 18 19 06 08 E9 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 2ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 10, succeed: 10, failed: 0, avg. exec time: 2ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 0B 00 26 1E 00 00 00 05 63 5E [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 0B 00 26 00 7C 01 0A 13 06 9E 74 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 2ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 11, succeed: 11, failed: 0, avg. exec time: 2ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 0C 00 26 1E 00 00 00 06 18 A9 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 09 00 0C 00 26 00 80 01 08 13 06 28 1F [6695] [ProtocolV2_0x82c4fb60 ] [D] command 26 return code: 0 execution took 2ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 12, succeed: 12, failed: 0, avg. exec time: 2ms [6695] [DeviceProperties_0x984de940 ] [D] device properties cached [6695] [DeviceProperties_0x984de940 ] [D] name: POSCENTER BANK-01Ф [6695] [DeviceProperties_0x984de940 ] [D] fonts: 6 [6695] [DeviceProperties_0x984de940 ] [D] isUM: false [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 07 00 0D 00 10 01 00 00 00 3D 31 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 13 00 0D 00 10 00 01 90 00 02 00 00 26 48 00 00 00 00 08 FF 00 AF 49 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 10 return code: 0 execution took 5ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 13, succeed: 13, failed: 0, avg. exec time: 3ms [6695] [classic_interface_0x8158a440 ] [T] WaitForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType(0) [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType() ok [6695] [classic_interface_0x8158a440 ] [T] OpenCheck() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 08 00 0E 00 8D 01 00 00 00 00 51 05 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 05 00 0E 00 8D 00 01 EB 2E [6695] [ProtocolV2_0x82c4fb60 ] [D] command 8D return code: 0 execution took 181ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 14, succeed: 14, failed: 0, avg. exec time: 15ms [6695] [classic_interface_0x8158a440 ] [T] OpenCheck() ok [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType(1) [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity(1.00946) [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Price(12300) [6695] [classic_interface_0x8158a440 ] [T] Set_Price() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled(false) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1(-1) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled(false) [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Department(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Department() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign(4) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign(1) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting(Традиционное молоко) [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] FNOperation() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 35 00 0F 00 FF 46 01 00 00 00 01 30 67 0F 00 00 00 0C 30 00 00 00 FF FF FF FF FF FF FF FF FF FF 01 01 04 01 D2 F0 E0 E4 E8 F6 E8 EE ED ED EE E5 20 EC EE EB EE EA EE 3C B3 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 05 00 0F 00 FF 46 00 99 85 [6695] [ProtocolV2_0x82c4fb60 ] [D] command FF46 return code: 0 execution took 285ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 15, succeed: 15, failed: 0, avg. exec time: 33ms [6695] [classic_interface_0x8158a440 ] [T] FNOperation() ok [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType(1) [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity(4) [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Price(4440) [6695] [classic_interface_0x8158a440 ] [T] Set_Price() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled(true) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1(17761) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled(false) [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Department(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Department() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign(4) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign(1) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting(Товар) [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] FNOperation() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 27 00 10 00 FF 46 01 00 00 00 01 00 09 3D 00 00 00 58 11 00 00 00 61 45 00 00 00 FF FF FF FF FF 01 01 04 01 D2 EE E2 E0 F0 19 3C [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 05 00 10 00 FF 46 00 3A E4 [6695] [ProtocolV2_0x82c4fb60 ] [D] command FF46 return code: 0 execution took 121ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 16, succeed: 16, failed: 0, avg. exec time: 39ms [6695] [classic_interface_0x8158a440 ] [T] FNOperation() ok [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType(1) [6695] [classic_interface_0x8158a440 ] [T] Set_CheckType() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Quantity() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Price(5000) [6695] [classic_interface_0x8158a440 ] [T] Set_Price() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled(true) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1Enabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1(5000) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled(false) [6695] [classic_interface_0x8158a440 ] [T] Set_TaxValueEnabled() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Department(1) [6695] [classic_interface_0x8158a440 ] [T] Set_Department() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign(4) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentTypeSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign(1) [6695] [classic_interface_0x8158a440 ] [T] Set_PaymentItemSign() ok [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting(Сигареты Прима) [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] FNOperation() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 30 00 11 00 FF 46 01 00 00 00 01 40 42 0F 00 00 00 88 13 00 00 00 88 13 00 00 00 FF FF FF FF FF 01 01 04 01 D1 E8 E3 E0 F0 E5 F2 FB 20 CF F0 E8 EC E0 B9 DC [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 05 00 11 00 FF 46 00 6B 4E [6695] [ProtocolV2_0x82c4fb60 ] [D] command FF46 return code: 0 execution took 118ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 17, succeed: 17, failed: 0, avg. exec time: 43ms [6695] [classic_interface_0x8158a440 ] [T] FNOperation() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1(15000) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ2(20176) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ2() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ3(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ3() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ4(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ4() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ5(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ5() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ6(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ6() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ7(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ7() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ8(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ8() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ9(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ9() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ10(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ10() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ11(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ11() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ12(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ12() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ13(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ13() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ14(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ14() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ15(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ15() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Summ16(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Summ16() ok [6695] [classic_interface_0x8158a440 ] [T] Set_RoundingSumm(1) [6695] [classic_interface_0x8158a440 ] [T] Set_RoundingSumm() ok [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting(`) [6695] [classic_interface_0x8158a440 ] [T] Set_StringForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax1() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax2(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax2() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax3(0) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax3() ok [6695] [classic_interface_0x8158a440 ] [T] Set_Tax4(0`) [6695] [classic_interface_0x8158a440 ] [T] Set_Tax4() ok [6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 78 00 12 00 FF 45 01 00 00 00 98 3A 00 00 00 D0 4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7 50 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 12 00 12 00 FF 45 00 00 00 00 00 00 05 00 00 00 EB F1 96 C0 03 1E [6695] [ProtocolV2_0x82c4fb60 ] [D] command FF45 return code: 0 execution took 449ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 18, succeed: 18, failed: 0, avg. exec time: 66ms [6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx() ok [6695] [classic_interface_0x8158a440 ] [T] WaitForPrinting() [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 07 00 13 00 10 01 00 00 00 CE 34 [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 13 00 13 00 10 00 01 90 00 08 05 03 26 48 00 00 00 00 02 FF 05 2B BF [6695] [ProtocolV2_0x82c4fb60 ] [D] command 10 return code: 0 execution took 11ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 19, succeed: 19, failed: 0, avg. exec time: 63ms [6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 07 00 14 00 10 01 00 00 00 8A 2D [6695] [TcpSocketIO_0x984de860 ] [D] <- 8F [6695] [TcpSocketIO_0x984de860 ] [D] <- 13 00 14 00 10 00 01 90 00 02 00 00 26 48 00 00 00 00 08 FF 00 D3 37 [6695] [ProtocolV2_0x82c4fb60 ] [D] command 10 return code: 0 execution took 25ms [6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 20, succeed: 20, failed: 0, avg. exec time: 61ms [6695] [classic_interface_0x8158a440 ] [T] WaitForPrinting() ok [6695] [classic_interface_0x8158a440 ] [T] Disconnect() [6695] [ProtocolV2_0x82c4fb60 ] [I] disconnect() [6695] [TcpSocketIO_0x984de860 ] [I] close() [6695] [TcpSocketIO_0x984de860 ] [E] shutdown: Transport endpoint is not connected [6695] [classic_interface_0x8158a440 ] [T] Disconnect() ok

Можете подсказать в чем может быть проблема?

asem-m commented 2 years ago

Запрос состояния ФН сделайте: Номер последнего ФД должен увеличиться на единицу - проверьте

DmitryBoychuk commented 2 years ago

Проверку сделал: пишет число 7 и не меняется:

----------------------------------------
 Состояние фазы жизни    : 03h, 3
 ----------------------------------------
   Проведена настройка ФН: [да]
   Открыт фискальный режим: [да]
   Закрыт фискальный режим: [нет]
   Закончена передача фискальных данных в ОФД: [нет]
 ----------------------------------------
 Текущий документ        : 00h, Нет открытого документа
 Данные документа        : 00h, Нет данных документа
 Состояние смены         : 01h, Смена открыта
 Флаги предупреждения    : 00h, 0
 Дата и время ФН         : 01.09.2022 16:00:00
 Номер ФН                : 9999078902011964
 Номер последнего ФД     : 7

так же посмотрели в КЯ, там пишется такая ошибка:

Отправка в ОФД/ОИСМ/ОКП: Ошибка recv( ): errno = 11.
 R OFD    [after]  TCP recv( ) = -1 (>0: OK, bytes received; <=0: errno=11)
 R OFD    [before] TCP recv( ): offset = 0; bytes_to_recv = 30 (header)
 E/pttSocketApp:          aniAsfIpc.c:971 Error(105):Recv failed, ipcPtr [0xb4619000], sd 4
 E/pttSocketApp:       pttSocketApp.c:759 IPC Recv failed
asem-m commented 2 years ago

EAGAIN 11 Resource temporarily unavailable

[6695] [ProtocolV2_0x82c4fb60 ] [D] command FF45 return code: 0 execution took 449ms Если ошибки нет на закрытие чека, то чек должен быть зарегистрирован в ФН и может быть распечатан.

Параметры регистрации пришлите: сделайте Запрос документа о регистрации в тесте драйвера ФР.

DmitryBoychuk commented 2 years ago

Можете написать где именно запрашивается такой функционал в тест драйвере? Не получилось найти...

asem-m commented 2 years ago

2022-09-01_17-17

DmitryBoychuk commented 2 years ago

Первый раз выдавало ошибку: image (4)

После перезахода на вкладку стало норм:

1209,ВЕРСИЯ ФФД:4 (1.2)
1190,ФФД ФН:4
1041,ФН:9999078902011964
1037,РН ККТ:0000000001016500
1018,ИНН:7736570901
1040,ФД:1
1012,ДАТА, ВРЕМЯ:19.08.2022 15:18:00
1077,ФП:3260774813 (2104C25B799D)
1017,ИНН ОФД:7709364346
1062,СНО:1 (ОБЩ.)
1056,ШФД:0
1002,АВТОНОМН. РЕЖИМ:0
1001,АВТОМАТ. РЕЖИМ:0
1290,ПРИЗН. УСЛОВИЙ ПРИМЕН. ККТ:256
1205,ИЗМ. СВЕД. О ККТ:1
1213,РЕСУРС КЛЮЧЕЙ:470
1189,ФФД ККТ:4 (1.2)
1187,МЕСТО РАСЧЕТОВ:пр. Андропова
1188,ВЕР. ККТ:003
1060,САЙТ ФНС:[www.nalog.ru](http://www.nalog.ru/)
1117,АДР. ЭЛ. ПОЧТЫ ОТПРАВ. ЧЕКА:[infra@moysklad.ru](mailto:infra@moysklad.ru)
1046,ОФД:Первый ОФД
1013,ЗН ККТ:3201011000000131
1021,КАССИР:Кассир
1048,НАИМЕН. ПОЛЬЗ.:ООО "ЛОГНЕКС"
1009,АДР.РАСЧЕТОВ:пр. Андропова
asem-m commented 2 years ago

Подтвердите, что чек закрывается успешно, но чек не регистрируется в ФН (не меняется Номер последнего ФД)

DmitryBoychuk commented 2 years ago

Да, номер последнего ФД не меняется и остановился на 7. Об успешности закрытия чека могу судить по возвращаемому коду 0 и логам:

[6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx()
[6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 78 00 12 00 FF 45 01 00 00 00 98 3A 00 00 00 D0 4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7 50
[6695] [TcpSocketIO_0x984de860 ] [D] <- 8F
[6695] [TcpSocketIO_0x984de860 ] [D] <- 12 00 12 00 FF 45 00 00 00 00 00 00 05 00 00 00 EB F1 96 C0 03 1E
[6695] [ProtocolV2_0x82c4fb60 ] [D] command FF45 return code: 0 execution took 449ms
[6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 18, succeed: 18, failed: 0, avg. exec time: 66ms
[6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx() ok
DmitryBoychuk commented 2 years ago

@asem-m Небольшое дополнение. Чек регистрируется в ФН и меняется номер последнего ФД. Видимо этот функционал не работает при подключенном сокете к программе теста драйвера. После перезагруке терминала стало нормально Но чек всеравно не печатается

asem-m commented 2 years ago
  1. Нужно точно понять: если ошибок на команду ККТ FF45h нет, то чек точно регистрируется в ФН?

т.е. вы получили текущий Номер ФД, сделали открытие чека, набрали позиции и на закрытие чека получили command FF45 return code: 0, снова запросили Номер ФД и он совпал с предыдущим или инкрементировался?

  1. Какое значение в Т3П18 ЭЛЕКТРОН.ПРИНТЕР №0, 0-ВЫКЛ,1-ВКЛ,2-NULL?
DmitryBoychuk commented 2 years ago

Мы закрываем чек командой FNCloseCheckEx из classic_interface. Она отрабатывает корректно. Возвращается 0. Последний номер ФД увеличился на еденицу. В ОФД продажа не ушла. Значение в Т3П18 - 2

asem-m commented 2 years ago
  1. Если в ФН (МГМ) регистрируется чек, то команда закрытия чека с ответом 0 (ошибок нет) в КЯ корректно отрабатывается.
  2. Установите Т3П18=0.
DmitryBoychuk commented 2 years ago

@asem-m Изменение флага помогло!)) Спасибо!