Ir para conteúdo
  • Cadastre-se

smaniand

Membros
  • Total de ítens

    38
  • Registro em

  • Última visita

Tudo que smaniand postou

  1. And please have a look to this thread: http://www.projetoacbr.com.br/forum/topic/19179-bematech-mp-4000-th-fi-erro-de-comunicação-e-fechamento-de-relatório-gerencial/ We have the same issue here, at the bottom of the thread you talk about DataHoraSB and CanReadEx Thanks! Andrea
  2. Si, I investigated a bit more. The problem is that I cannot debug, as I run delphi on a Virtual Machine, and the USB bema driver cannot be virtualized. But...by adding some logs, I noticed that the problem is on ACBrECFBematech.pas, procedure VerificaFimLeitura, instruction: result:= not fpDevice.Serial.CanReadEx(1000). This command is used to be sure that, when ETX is received, no other informations are received on the serial. It is a sort of doublecheck. So: when i connect the MP4000 with COM, everything is ok, no more data after ETX. When I connect with USB and virtual serial port, the result of fpDevice.Serial.CanReadEx(1000) is always TRUE, even if ETX is received. So it looks like that, via USB, there are some other "dirty" data on the serial still there, after the ETX. I commented out this "check" and now all is working good, but I dont think that it could be a solution. Thanks Andrea
  3. Hi Daniel, I am using trunk directory. I downloaded the ECFTeste compiled with trunk2, and DataHoraSB WORKS! So, is there a chance to port the fix done on trunk2 also on trunk? Or the only way is to migrate to trunk2? Many thanks! Andrea
  4. Hello Daniel Here the logfiles with the new driver installed 3.0.0.7. I used the ECFTeste demo that is included with ACBr source code. I just pressed the button "Ativar", and I get the error : Impressora Bematech não responde (ACK = 0) -------------------------------------------------------------------------------- ATIVAR - 08/10/15 14:24:21:999 - Modelo: Bematech - Porta: COM5 - TimeOut: 3 Device: BAUD=9600 DATA=8 PARITY=N STOP=1 HANDSHAKE=RTS/CTS HARDFLOW MAXBANDWIDTH=0 -------------------------------------------------------------------------------- -- 14:24:22:034 TX -> [STX][4][NUL][FS][19]/[NUL] 14:24:22:327 RX <- ACK = 0 Falha: 0 TX -> [STX][4][NUL][FS][19]/[NUL] 14:24:22:775 RX <- ACK = 0 Falha: 1 TX -> [STX][4][NUL][FS][19]/[NUL] 14:24:23:223 RX <- ACK = 0 Falha: 2 14:24:23:224 RX <- ----------------- ERRO ----------------- Impressora Bematech não responde (ACK = 0) ---------------------------------------- -- 14:24:23:226 TX -> [STX][4][NUL][ESC][19].[NUL] 14:24:23:574 RX <- ACK = 0 Falha: 0 TX -> [STX][4][NUL][ESC][19].[NUL] 14:24:24:023 RX <- ACK = 0 Falha: 1 TX -> [STX][4][NUL][ESC][19].[NUL] 14:24:24:471 RX <- ACK = 0 Falha: 2 14:24:24:473 RX <- ----------------- ERRO ----------------- Impressora Bematech não responde (ACK = 0) ---------------------------------------- As I told you, with Bematech Virtual Serial Port 3.0.0.3 I can Activate the printer, I can do everything, only problem on ACBrECF.DataHoraSB. With 3.0.0.7, I cannot even activate the communication. Thanks Andrea
  5. Daniel, I downloaded bemaghost and bemadrivers. Executed with administrator privileges BemaGhost, option 99. Rebooted. Execeuted BemaDrivers --> MP 4000 recognized. Rebooted. Installed Bematech Virtual Serial Port X64 3.0.0.7, configured comport 5 --> FISCAL --> Radiobutton USB 0_MP-400 TH FI. Executed my software : no way. The printer does not print AT ALL, no commands are working. With 3.0.0.3 everything works (I think so), the only thing not working is the DataHoraSB. Can be a Bematech issue? Thanks! Andrea Here some screenshots.... @Ryan molina I my case I have a MP 4000 TH FI, anyway I tried to change the values on the ACBrECF component for timeout and interval between commands (I set 1 hour timeout...) but nothing changed, always the same problem. and ONLY with ACBrECF1.DataHoraSB Thanks
  6. Buongiorno a tutti! I have a Bematech MP 4000 TH FI. I use ECFTeste.exe to test the commands. When I connect the printer with onboard COM, everything is fine. When I connect with USB, using the Bematech Virtual Serial Port Driver rel 3.0.0.3, the command ACBrECF1.DataHoraSB times-out. I already increased the timeout values but without success. Already tried to decrease/disable the COM buffer, no way. I tried to install 3.0.0.7 but with this driver the printer is not working AT ALL. Here the logfiles when connected with USB and BVSP Driver: -------------------------------------------------------------------------------- ATIVAR - 07/10/15 18:02:42:849 - Modelo: Bematech - Porta: COM5 - TimeOut: 3 Device: BAUD=9600 DATA=8 PARITY=N STOP=1 HANDSHAKE=RTS/CTS HARDFLOW MAXBANDWIDTH=0 -------------------------------------------------------------------------------- -- 18:02:42:884 TX -> [STX][4][NUL][FS][19]/[NUL] 18:02:43:101 RX <- ACK = 6 Falha: 0 18:02:43:203 RX <- [NUL][NUL][NUL][NUL] -- 18:02:43:233 TX -> [STX][ENQ][NUL][FS]#)h[NUL] 18:02:43:402 RX <- ACK = 6 Falha: 0 18:02:43:504 RX <- [SOH][NUL][SOH][NUL][NUL][NUL][NUL] -- 18:02:43:505 TX -> [STX][ENQ][NUL][FS]#<{[NUL] 18:02:43:700 RX <- ACK = 6 Falha: 0 18:02:43:801 RX <- BEMATECH MP-4000 TH FI ECF-IF [NUL][NUL][NUL][NUL] -- 18:02:43:802 TX -> [STX][ENQ][NUL][FS]#[11]J[NUL] 18:02:43:992 RX <- ACK = 6 Falha: 0 18:02:44:093 RX <- [NUL][SOH][NUL][NUL][NUL][NUL] -- 18:02:44:094 TX -> [STX][ENQ][NUL][FS]#(g[NUL] 18:02:44:224 RX <- ACK = 6 Falha: 0 18:02:44:326 RX <- BE091210100011322461[NUL][NUL][NUL][NUL] -- 18:02:44:327 Estado TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:02:44:496 RX <- ACK = 6 Falha: 0 18:02:44:598 RX <- [16][NUL][NUL][NUL][NUL] -- 18:02:44:599 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:02:44:726 RX <- ACK = 6 Falha: 0 18:02:44:827 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:02:44:828 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:02:45:018 RX <- ACK = 6 Falha: 0 18:02:45:120 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:02:45:124 Estado TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:02:45:314 RX <- ACK = 6 Falha: 0 18:02:45:416 RX <- [16][NUL][NUL][NUL][NUL] -- 18:02:45:417 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:02:45:607 RX <- ACK = 6 Falha: 0 18:02:45:710 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:02:45:711 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:02:45:838 RX <- ACK = 6 Falha: 0 18:02:45:940 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:02:57:098 DataHoraSB TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:02:57:245 RX <- ACK = 6 Falha: 0 18:02:57:347 RX <- [16][NUL][NUL][NUL][NUL] -- 18:02:57:348 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:02:57:538 RX <- ACK = 6 Falha: 0 18:02:57:641 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:02:57:642 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:02:57:829 RX <- ACK = 6 Falha: 0 18:02:57:931 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:02:57:932 TX -> [STX][ENQ][NUL][FS]#[TAB]H[NUL] 18:02:58:057 RX <- ACK = 6 Falha: 0 18:02:58:160 RX <- [NUL][128][NUL][NUL][NUL][NUL] -- 18:02:58:161 TX -> [STX][WAK][NUL][FS][BS]000080000080R[198][STX] 18:02:58:329 RX <- ACK = 6 Falha: 0 18:03:29:570 RX <- [NUL][NUL][NUL][NUL] OPTIDADOS SOFTWARE OPTICOS LTDA - ME [LF] RUA:ANTONIO PEDRO,368 CENTRO[LF] PEDREIRA/SP CEP:13920-000 [LF]CNPJ:09.492.015/0001-99 [LF]IE:519.103.690.113 [LF]IM:5.4.8648 [LF]07/10/2015 14:25:02 COO:002605[LF] LEITURA MEM[224]RIA FISCAL [LF] REDU[128][199]O: 0080 a 0080[LF]Contador Geral de Opera[135][198]o N[198]o-Fiscal: 001098[LF]Contador de Redu[135][228]es Z: 0080[LF]Contador de Rein[161]cio de Opera[135][198]o: 003[LF]Contador de Fita-detalhe: 000000[LF] REIN[214]CIO OPERA[128][199]O [LF]CRO DATA HORA[LF]001# 13/11/2012 14:51:18 [LF]002 10/01/2013 06:45:36 [LF]003 09/04/2013 06:38:33 [LF] IMPRESS[199]O FITA DETALHE [LF]CFD DATA HORA COOi COOf[LF]CNPJ:[LF] USU[181]RIOS [LF]Usu[160]rio:0001 CRO:001 13/11/2012 14:51:18 [LF]CNPJ: 09.492.015/0001-99 [LF]IE: 519.103.690.113 [LF]IM: 5.4.8648 [LF]GT: 555.572,80[LF] REDU[128][228]ES DI[181]RIAS [LF] Usu[160]rio:0001[LF]CRZ CRO COO DATA HORA[LF] VENDA BRUTA DI[181]RIA ( R$)[LF]DT=desconto ICMS DS=desconto ISSQN[LF]AT=acr[130]scimo ICMS AS=acr[130]scimo ISSQN[LF]CT=canc.ICMS CS=canc. ISSQN[LF]ON=opera[135][198]o n[198]o-fiscal[LF]0080 003 002603 02/10/2015 02:00:02 [LF] R$ 198,00[LF]03T18,00%=198,00 [LF][LF]Total do m[136]s 10 de 2015[LF]Venda Bruta ( R$) 198,00[LF]T18,00%=198,00 [LF][LF]N[163]mero de Redu[135][228]es Restantes: 3266[LF] DADOS GERAIS [LF] SOFTWARE B[181]SICO [LF]01.00.01 05/10/2012 13:53:16 [LF]MOEDA: R 13/11/2012 14:51:18 [LF]QUANTIDADE: 03 13/11/2012 14:51:19 [LF]VALOR UNIT[181]RIO: 03 13/11/2012 14:51:19 [LF]MFD:[LF]392204112100165705 [LF][LF]CODIFICA[128][199]O GT[LF]a partir de 13/11/2012 14:51:18 [LF]0=Q, 1=W, 2=E, 3=R, 4=T, 5=Y, 6=U, 7=I, 8=O, 9=P[LF]8BQIAGUA BAX4G6EY NMK$LL!N 8BOCABR8 96R3B0DTLBHPBEMATECH MP-4000 TH FI ECF-IF[LF]VERS[199]O:01.00.01 ECF:001 LJ:0001[LF]QQQQQQQQQQYYYYIEOQ 07/10/2015 14:25:02 [LF]FAB:BE091210100011322461 [LF][LF][LF][LF][LF][LF][ETX] ----------------- ERRO ----------------- Impressora Bematech não está respondendo ---------------------------------------- and here the logfile, same software, same command (DataHoraSB) but connected with onboard COM: -------------------------------------------------------------------------------- ATIVAR - 07/10/15 18:04:22:569 - Modelo: Bematech - Porta: COM3 - TimeOut: 3 Device: BAUD=9600 DATA=8 PARITY=N STOP=1 HANDSHAKE=RTS/CTS HARDFLOW MAXBANDWIDTH=0 -------------------------------------------------------------------------------- -- 18:04:22:570 TX -> [STX][4][NUL][FS][19]/[NUL] 18:04:22:622 RX <- ACK = 6 Falha: 0 18:04:22:723 RX <- [NUL][NUL][NUL][NUL] -- 18:04:22:724 TX -> [STX][ENQ][NUL][FS]#)h[NUL] 18:04:22:751 RX <- ACK = 6 Falha: 0 18:04:22:852 RX <- [SOH][NUL][SOH][NUL][NUL][NUL][NUL] -- 18:04:22:853 TX -> [STX][ENQ][NUL][FS]#<{[NUL] 18:04:22:881 RX <- ACK = 6 Falha: 0 18:04:23:024 RX <- BEMATECH MP-4000 TH FI ECF-IF [NUL][NUL][NUL][NUL] -- 18:04:23:025 TX -> [STX][ENQ][NUL][FS]#[11]J[NUL] 18:04:23:050 RX <- ACK = 6 Falha: 0 18:04:23:151 RX <- [NUL][SOH][NUL][NUL][NUL][NUL] -- 18:04:23:151 TX -> [STX][ENQ][NUL][FS]#(g[NUL] 18:04:23:179 RX <- ACK = 6 Falha: 0 18:04:23:298 RX <- BE091210100011322461[NUL][NUL][NUL][NUL] -- 18:04:23:299 Estado TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:04:23:322 RX <- ACK = 6 Falha: 0 18:04:23:423 RX <- [16][NUL][NUL][NUL][NUL] -- 18:04:23:424 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:04:23:447 RX <- ACK = 6 Falha: 0 18:04:23:548 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:04:23:549 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:04:23:575 RX <- ACK = 6 Falha: 0 18:04:23:677 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:04:23:681 Estado TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:04:23:705 RX <- ACK = 6 Falha: 0 18:04:23:807 RX <- [16][NUL][NUL][NUL][NUL] -- 18:04:23:808 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:04:23:831 RX <- ACK = 6 Falha: 0 18:04:23:933 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:04:23:934 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:04:23:960 RX <- ACK = 6 Falha: 0 18:04:24:061 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:04:27:122 DataHoraSB TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:04:27:146 RX <- ACK = 6 Falha: 0 18:04:27:248 RX <- [16][NUL][NUL][NUL][NUL] -- 18:04:27:249 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:04:27:274 RX <- ACK = 6 Falha: 0 18:04:27:375 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:04:27:376 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:04:27:403 RX <- ACK = 6 Falha: 0 18:04:27:505 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] -- 18:04:27:506 TX -> [STX][ENQ][NUL][FS]#[TAB]H[NUL] 18:04:27:532 RX <- ACK = 6 Falha: 0 18:04:27:634 RX <- [NUL][128][NUL][NUL][NUL][NUL] -- 18:04:27:635 TX -> [STX][WAK][NUL][FS][BS]000080000080R[198][STX] 18:04:27:664 RX <- ACK = 6 Falha: 0 18:04:32:032 RX <- [NUL][NUL][NUL][NUL] OPTIDADOS SOFTWARE OPTICOS LTDA - ME [LF] RUA:ANTONIO PEDRO,368 CENTRO[LF] PEDREIRA/SP CEP:13920-000 [LF]CNPJ:09.492.015/0001-99 [LF]IE:519.103.690.113 [LF]IM:5.4.8648 [LF]07/10/2015 14:26:31 COO:002605[LF] LEITURA MEM[224]RIA FISCAL [LF] REDU[128][199]O: 0080 a 0080[LF]Contador Geral de Opera[135][198]o N[198]o-Fiscal: 001098[LF]Contador de Redu[135][228]es Z: 0080[LF]Contador de Rein[161]cio de Opera[135][198]o: 003[LF]Contador de Fita-detalhe: 000000[LF] REIN[214]CIO OPERA[128][199]O [LF]CRO DATA HORA[LF]001# 13/11/2012 14:51:18 [LF]002 10/01/2013 06:45:36 [LF]003 09/04/2013 06:38:33 [LF] IMPRESS[199]O FITA DETALHE [LF]CFD DATA HORA COOi COOf[LF]CNPJ:[LF] USU[181]RIOS [LF]Usu[160]rio:0001 CRO:001 13/11/2012 14:51:18 [LF]CNPJ: 09.492.015/0001-99 [LF]IE: 519.103.690.113 [LF]IM: 5.4.8648 [LF]GT: 555.572,80[LF] REDU[128][228]ES DI[181]RIAS [LF] Usu[160]rio:0001[LF]CRZ CRO COO DATA HORA[LF] VENDA BRUTA DI[181]RIA ( R$)[LF]DT=desconto ICMS DS=desconto ISSQN[LF]AT=acr[130]scimo ICMS AS=acr[130]scimo ISSQN[LF]CT=canc.ICMS CS=canc. ISSQN[LF]ON=opera[135][198]o n[198]o-fiscal[LF]0080 003 002603 02/10/2015 02:00:02 [LF] R$ 198,00[LF]03T18,00%=198,00 [LF][LF]Total do m[136]s 10 de 2015[LF]Venda Bruta ( R$) 198,00[LF]T18,00%=198,00 [LF][LF]N[163]mero de Redu[135][228]es Restantes: 3266[LF] DADOS GERAIS [LF] SOFTWARE B[181]SICO [LF]01.00.01 05/10/2012 13:53:16 [LF]MOEDA: R 13/11/2012 14:51:18 [LF]QUANTIDADE: 03 13/11/2012 14:51:19 [LF]VALOR UNIT[181]RIO: 03 13/11/2012 14:51:19 [LF]MFD:[LF]392204112100165705 [LF][LF]CODIFICA[128][199]O GT[LF]a partir de 13/11/2012 14:51:18 [LF]0=Q, 1=W, 2=E, 3=R, 4=T, 5=Y, 6=U, 7=I, 8=O, 9=P[LF]CFPOEIGA 5AW3CEFT ERWXPP+T CFNIEDD8 36Q278EOCGNQBEMATECH MP-4000 TH FI ECF-IF[LF]VERS[199]O:01.00.01 ECF:001 LJ:0001[LF]QQQQQQQQQQYYYYIEOQ 07/10/2015 14:26:34 [LF]FAB:BE091210100011322461 [LF][LF][LF][LF][LF][LF][ETX] -- 18:04:32:037 Estado TX -> [STX][ENQ][NUL][FS]#[WAK]P[NUL] 18:04:32:061 RX <- ACK = 6 Falha: 0 18:04:32:163 RX <- [16][NUL][NUL][NUL][NUL] -- 18:04:32:165 TX -> [STX][ENQ][NUL][FS]#A[128][NUL] 18:04:32:190 RX <- ACK = 6 Falha: 0 18:04:32:292 RX <- [NUL][NUL][NUL][NUL][NUL] -- 18:04:32:293 TX -> [STX][ENQ][NUL][FS]#[ESC]Z[NUL] 18:04:32:321 RX <- ACK = 6 Falha: 0 18:04:32:423 RX <- [NUL][NUL][NUL][NUL][NUL][NUL][NUL] Many thanks for your help! Andrea ITALY
  7. Hello, there is a bug on ACBreCFBematech.pas : Line 2274 { Adicionando SA-Sangria e SU-Suprimento que sempre estarão presentes na Bematech} CNF := TACBrECFComprovanteNaoFiscal.create ; CNF.Indice := 'SA' ; CNF.Descricao := 'Sangria' ; CNF.Total := StrToFloatDef( BcdToAsc( copy(TotalizadoresParciais,ifThen(fs25MFD,393,197),7) ),0) / 100 ; CNF.Contador := StrToIntDef( copy(RetCmd,113,4),0) ; fpComprovantesNaoFiscais.Insert(0, CNF ) ; CNF := TACBrECFComprovanteNaoFiscal.create ; CNF.Indice := 'SU' ; CNF.Descricao := 'Suprimento' ; CNF.Total := StrToFloatDef( BcdToAsc( copy(TotalizadoresParciais,ifThen(fs25MFD,400,204),7) ),0) / 100 ; CNF.Contador := StrToIntDef( copy(RetCmd,117,4),0) ; Sangria and Suprimento are added manually, and inserted on position 0 and 1 of the fpComprovantesNaoFiscais then on function TACBrECFBematech.GetDadosUltimaReducaoZ: AnsiString; Line 3182 for I := 0 to fpComprovantesNaoFiscais.Count - 1 do begin CNFZ := TACBrECFComprovanteNaoFiscal.Create ; CNFZ.Assign( fpComprovantesNaoFiscais ); P := StrToIntDef(CNFZ.Indice,I+1)-1; CNFZ.Total := RoundTo( StrToFloatDef( copy(S,(P*14)+1,14),0) / 100, -2) ; CNFZ.Contador := StrToIntDef( copy(SS,(P*4)+1,4), 0); First time CNFZ.Indice is "SA", exception throws, and P assumes 0, then we read from variable S the first 14 chars, that is Sangria value Second time CNFZ.Indce is "SU" , exception throws, and P assumes 1, then we read from variable S the second 14 chars, that is Suprimento value Now if we have another Comprovante cadastrado, it will have indice=01 and CNFZ.Indice is "01" and P assumes again value 1 and we read again the Sangria value. Then on CalculaValoresVirtuais we will have a wrong information for Total Operacao nao fiscal. HTH Regards from Italy Andrea
  8. smaniand

    SAT-CFe e FastReports

    Olà, quando serà possivel imprimir o CFe com FastReport? Obrigado Andrea ITALY
  9. Maicon, eu sou italiano e meo Portugues nao è muito bom. Voce tem que implementar o metodo ACBrSAT1.OnGetCodigoDeAtivacao , muito simples 1 itens de codigo so: Chave:=(codigodeativacao) OnGetSignAC tem que ser implementada tb no mesmo. Ciao Andrea
  10. Ciao Maicon, sim consegui enviar venda com o demo e com a AC tb. Acho que voce tem que configurar codigo de ativacao no emulador antes de enviar a venda Andrea
  11. smaniand

    Erro nao identificado

    Ola a todos, tenho um problema com o ACBrSAT. Como posso obter o detalhe do erro do SAT? ACBrSAT1.Resposta.MensagemRetorno somente retorna "Erro nao identificado". Obrigado
  12. I have the same problem here. My application is hanging for several minutes when i call ConsultarSAT and the demo is not running. Many thanks Andrea ITALY
  13. Ola, eu sei Italiano, eu tem mesmo problema, alguem pode ajudar por favor? Grazie
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.