Ir para conteúdo
  • Cadastre-se

Pesquisar na Comunidade

Showing results for tags 'sat no lazarus'.

  • Search By Tags

    Digite tags separadas por vírgulas
  • Search By Author

Tipo de Conteúdo


Fóruns

  • Fórum Aberto - ACBr
    • Notícias do ACBr
    • Equipamentos testados
    • Base de Conhecimento
    • Dúvidas Gerais sobre o ACBr
    • ACBrSerial
    • ACBrSAT
    • ACBrNFe
    • ACBrDFe
    • Dúvidas sobre TEF
    • Dúvidas sobre PIX
    • ACBrMonitor PLUS
    • ACBrTXT
    • ACBrBoleto
    • ACBrDiversos
    • ACBrTCP
    • ACBrFramework
    • ACBrLIB
  • ACBr API
    • Duvidas Gerais ACBr API
    • Duvidas Privadas ACBr API
  • Suporte Nuvem Fiscal
    • Comunidade Nuvem Fiscal
  • Outros Assuntos
    • Boteco do ACBr
    • Legislação Fiscal e Tributária
    • Object Pascal - Delphi & Lazarus
    • Banco de Dados
    • Classificados
    • Dúvidas não relacionadas ao ACBr

Categorias

  • ACBr Pro
    • ACBrLib - PRO
    • ACBrMonitorPLUS - PRO
    • Utilitários - PRO
    • Dia do ACBr 1a edição
    • Dia do ACBr 2a edição
  • Download Livre
    • ACBrLib - DEMO
    • ACBrMonitorPLUS - DEMO
    • Demos / Testes / Utilitários
    • Apresentações - Palestras
  • ACBr TEF

Calendários

  • Eventos - Palestras - Webinars
  • Prazos SEFAZ
  • Calendário da Comunidade
  • ACBr Papo Pro
  • Feriados Nacionais

Find results in...

Find results that contain...


Data de Criação

  • Início

    End


Data de Atualização

  • Início

    End


Filter by number of...

Data de Registro

  • Início

    End


Grupo


Website URL

Encontrado 1 registro

  1. Ola a todos, ainda não encontrei nenhuma informação sobre o uso do SAT no Linux, por isso vou iniciar esse tópico. meus testes estão sendo feitos no seguinte ambiente: Linux Mint 17.3 32bits Lazarus v1.6 FPC 3.0 Acbr mais recente SAT: Linker Elgin A minha primeira tentativa foi usar o Exemplo do acbr, eu modifiquei a entrada do exemplo para buscar as libs: OpenDialog1.Filter := 'Arquivo LIB ou DLL|*.dll;*.so'; e agora estou tentando utilizar a libsatprotocolELGIN32bits.so fornecida pelo fabricante, ao clicar no botão Inicializar fui depurando linha a linha e encontrei um problema, na procedure TACBrSATDinamico_cdecl.LoadDLLFunctions; ao verificar se o primeiro método "AssociarAssinatura" existe na LIB já está obtendo erro, está sendo usada a função FunctionDetect da ACBRUtils: function FunctionDetect (LibName, FuncName: String; var LibPointer: Pointer; var LibHandle: THandle ): boolean; e o erro está na linha LibHandle := dynlibs.LoadLibrary(LibName) ; está retornando ZERO como se o método não existisse, para ter certeza eu executei o comando readelf --dyn-syms libsatprotocolELGIN32bits.so e encontrei o método, o que pode estar errado? $ readelf --dyn-syms libsatprotocolELGIN32bits.so Tabela de símbolo '.dynsym' contém 123 entradas: Número: Tamanho do Valor do Tipo de Vínculo Nome Vis Ndx 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 FUNC GLOBAL DEFAULT UND cfmakeraw@GLIBC_2.0 (2) 2: 00000000 0 FUNC GLOBAL DEFAULT UND strstr@GLIBC_2.0 (2) 3: 00000000 0 FUNC GLOBAL DEFAULT UND read@GLIBC_2.0 (2) 4: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab 5: 00000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.0 (2) 6: 00000000 0 FUNC GLOBAL DEFAULT UND tcflush@GLIBC_2.0 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND memcpy@GLIBC_2.0 (2) 8: 00000000 0 FUNC GLOBAL DEFAULT UND fgets@GLIBC_2.0 (2) 9: 00000000 0 FUNC GLOBAL DEFAULT UND fclose@GLIBC_2.1 (3) 10: 00000000 0 FUNC GLOBAL DEFAULT UND time@GLIBC_2.0 (2) 11: 00000000 0 FUNC GLOBAL DEFAULT UND cfsetospeed@GLIBC_2.0 (2) 12: 00000000 0 FUNC GLOBAL DEFAULT UND uncompress 13: 00000000 0 FUNC GLOBAL DEFAULT UND gettimeofday@GLIBC_2.0 (2) 14: 00000000 0 FUNC GLOBAL DEFAULT UND select@GLIBC_2.0 (2) 15: 00000000 0 FUNC GLOBAL DEFAULT UND popen@GLIBC_2.1 (3) 16: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (4) 17: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (5) 18: 00000000 0 FUNC GLOBAL DEFAULT UND perror@GLIBC_2.0 (2) 19: 00000000 0 FUNC GLOBAL DEFAULT UND fwrite@GLIBC_2.0 (2) 20: 00000000 0 FUNC GLOBAL DEFAULT UND usleep@GLIBC_2.0 (2) 21: 00000000 0 FUNC GLOBAL DEFAULT UND strcat@GLIBC_2.0 (2) 22: 00000000 0 FUNC GLOBAL DEFAULT UND fread@GLIBC_2.0 (2) 23: 00000000 0 FUNC GLOBAL DEFAULT UND strcpy@GLIBC_2.0 (2) 24: 00000000 0 FUNC GLOBAL DEFAULT UND tcsetattr@GLIBC_2.0 (2) 25: 00000000 0 FUNC GLOBAL DEFAULT UND strerror@GLIBC_2.0 (2) 26: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 27: 00000000 0 FUNC GLOBAL DEFAULT UND open@GLIBC_2.0 (2) 28: 00000000 0 FUNC GLOBAL DEFAULT UND pclose@GLIBC_2.1 (3) 29: 00000000 0 FUNC GLOBAL DEFAULT UND localtime@GLIBC_2.0 (2) 30: 00000000 0 FUNC GLOBAL DEFAULT UND strchr@GLIBC_2.0 (2) 31: 00000000 0 FUNC GLOBAL DEFAULT UND strlen@GLIBC_2.0 (2) 32: 00000000 0 FUNC GLOBAL DEFAULT UND fprintf@GLIBC_2.0 (2) 33: 00000000 0 FUNC GLOBAL DEFAULT UND write@GLIBC_2.0 (2) 34: 00000000 0 FUNC GLOBAL DEFAULT UND cfsetispeed@GLIBC_2.0 (2) 35: 00000000 0 FUNC GLOBAL DEFAULT UND strcasecmp@GLIBC_2.0 (2) 36: 00000000 0 FUNC GLOBAL DEFAULT UND fcntl@GLIBC_2.0 (2) 37: 00000000 0 FUNC GLOBAL DEFAULT UND __isoc99_sscanf@GLIBC_2.7 (6) 38: 00000000 0 FUNC GLOBAL DEFAULT UND fopen@GLIBC_2.1 (3) 39: 00000000 0 FUNC GLOBAL DEFAULT UND memset@GLIBC_2.0 (2) 40: 00000000 0 FUNC GLOBAL DEFAULT UND __errno_location@GLIBC_2.0 (2) 41: 00000000 0 FUNC GLOBAL DEFAULT UND strncpy@GLIBC_2.0 (2) 42: 00000000 0 FUNC GLOBAL DEFAULT UND strncasecmp@GLIBC_2.0 (2) 43: 00000000 0 FUNC GLOBAL DEFAULT UND rand@GLIBC_2.0 (2) 44: 00000000 0 FUNC GLOBAL DEFAULT UND compress2 45: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 46: 00000000 0 FUNC GLOBAL DEFAULT UND sprintf@GLIBC_2.0 (2) 47: 00000000 0 FUNC GLOBAL DEFAULT UND atoi@GLIBC_2.0 (2) 48: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 49: 00000000 0 FUNC GLOBAL DEFAULT UND tcgetattr@GLIBC_2.0 (2) 50: 00000000 0 FUNC GLOBAL DEFAULT UND close@GLIBC_2.0 (2) 51: 000058d3 754 FUNC GLOBAL DEFAULT 11 TrocarCodigoDeAtivacao 52: 00001f2c 108 FUNC GLOBAL DEFAULT 11 Descompacta 53: 00a8d680 0x83000 OBJECT GLOBAL DEFAULT 23 BufferCMD 54: 0000485c 716 FUNC GLOBAL DEFAULT 11 ConfigurarInterfaceDeRede 55: 00001f98 384 FUNC GLOBAL DEFAULT 11 EnviaComandoBinario 56: 00006321 187 FUNC GLOBAL DEFAULT 11 read_serial_block 57: 00002ccf 673 FUNC GLOBAL DEFAULT 11 ConsultarSAT 58: 0000a148 4 OBJECT GLOBAL DEFAULT 23 sequence 59: 00002390 177 FUNC GLOBAL DEFAULT 11 AbreSerialSAT 60: 0000325c 743 FUNC GLOBAL DEFAULT 11 ComunicarCertificadoICPBR 61: 00005d5a 40 FUNC GLOBAL DEFAULT 11 close_host_serial 62: 000063dc 687 FUNC GLOBAL DEFAULT 11 decode_command_from_host 63: 0000a140 1 OBJECT GLOBAL DEFAULT 23 bLog 64: 00006079 54 FUNC GLOBAL DEFAULT 11 finish_host_side 65: 00005d18 66 FUNC GLOBAL DEFAULT 11 init_host_serial 66: 0000a14c 1 OBJECT GLOBAL DEFAULT 23 bPortOK 67: 00f93be0 4 OBJECT GLOBAL DEFAULT 23 fd_host 68: 00f106a0 0x83000 OBJECT GLOBAL DEFAULT 23 BufferTxSAT 69: 00002118 211 FUNC GLOBAL DEFAULT 11 GetTimeStamp 70: 000021eb 199 FUNC GLOBAL DEFAULT 11 randInt 71: 00001ea6 134 FUNC GLOBAL DEFAULT 11 IniciaCompactacao 72: 00003d43 754 FUNC GLOBAL DEFAULT 11 CancelarUltimaVenda 73: 00006d36 1345 FUNC GLOBAL DEFAULT 11 getUdevPath 74: 00007294 0 FUNC GLOBAL DEFAULT 12 _fini 75: 00005d82 389 FUNC GLOBAL DEFAULT 11 recv_from_serial 76: 000060af 186 FUNC GLOBAL DEFAULT 11 SendData 77: 00001d05 417 FUNC GLOBAL DEFAULT 11 DiscoveryPortCOM 78: 00002373 29 FUNC GLOBAL DEFAULT 11 GeraNumeroSessao 79: 00001560 0 FUNC GLOBAL DEFAULT 9 _init 80: 00006169 271 FUNC GLOBAL DEFAULT 11 ReceiveBUS 81: 00003543 2048 FUNC GLOBAL DEFAULT 11 EnviarDadosVenda 82: 0000537f 682 FUNC GLOBAL DEFAULT 11 BloquearSAT 83: 00001afb 522 FUNC GLOBAL DEFAULT 11 DLLloadConfig 84: 00a8d600 100 OBJECT GLOBAL DEFAULT 23 portCOMM 85: 00f939c4 8 OBJECT GLOBAL DEFAULT 23 tid 86: 0088d600 0x200000 OBJECT GLOBAL DEFAULT 23 BufferOut 87: 00d10680 0x200006 OBJECT GLOBAL DEFAULT 23 comm 88: 0048d5c0 4 OBJECT GLOBAL DEFAULT 23 pCommCfg 89: 00005f48 223 FUNC GLOBAL DEFAULT 11 sendSOH 90: 000022b2 27 FUNC GLOBAL DEFAULT 11 ConfiguraTimeout 91: 00005f07 65 FUNC GLOBAL DEFAULT 11 sendSYN 92: 00004e28 685 FUNC GLOBAL DEFAULT 11 AtualizarSoftwareSAT 93: 0000235d 22 FUNC GLOBAL DEFAULT 11 VersaoLib 94: 0000668b 359 FUNC GLOBAL DEFAULT 11 encode_command_to_host 95: 000050d5 682 FUNC GLOBAL DEFAULT 11 ExtrairLogs 96: 0048d5e0 0x400015 OBJECT GLOBAL DEFAULT 23 protocol 97: 000067f2 1095 FUNC GLOBAL DEFAULT 11 decode_command_from_ecf 98: 00006027 82 FUNC GLOBAL DEFAULT 11 sendENQ 99: 0000248f 435 FUNC GLOBAL DEFAULT 11 EnviaComando 100: 000022cd 144 FUNC GLOBAL DEFAULT 11 ArquivoLog 101: 00f93c00 0x400015 OBJECT GLOBAL DEFAULT 23 proto 102: 0000245e 49 FUNC GLOBAL DEFAULT 11 CodigoErro 103: 00002b4f 384 FUNC GLOBAL DEFAULT 11 PreConsultarSAT 104: 00005629 682 FUNC GLOBAL DEFAULT 11 DesbloquearSAT 105: 0020a5c0 0x200000 OBJECT GLOBAL DEFAULT 23 BufferDesc 106: 00002f70 748 FUNC GLOBAL DEFAULT 11 AtivarSAT 107: 000045ab 689 FUNC GLOBAL DEFAULT 11 ConsultarNumeroSessao 108: 00004301 682 FUNC GLOBAL DEFAULT 11 ConsultarStatusOperaciona 109: 0000a11c 0 NOTYPE GLOBAL DEFAULT 22 _edata 110: 00f939e0 500 OBJECT GLOBAL DEFAULT 23 FileLog 111: 00004b28 768 FUNC GLOBAL DEFAULT 11 AssociarAssinatura 112: 00006278 51 FUNC GLOBAL DEFAULT 11 PurgeCOMSAT 113: 0000a144 4 OBJECT GLOBAL DEFAULT 23 arqlog 114: 00b10680 0x200000 OBJECT GLOBAL DEFAULT 23 BufferRX 115: 00002441 29 FUNC GLOBAL DEFAULT 11 CloseSerial 116: 000062ab 118 FUNC GLOBAL DEFAULT 11 ReadAll 117: 01393c18 0 NOTYPE GLOBAL DEFAULT 23 _end 118: 0040a5c0 0x83000 OBJECT GLOBAL DEFAULT 23 straux 119: 00006c39 253 FUNC GLOBAL DEFAULT 11 encode_command_to_ecf 120: 00f936a0 804 OBJECT GLOBAL DEFAULT 23 pCommError 121: 0000a11c 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 122: 00004035 716 FUNC GLOBAL DEFAULT 11 TesteFimAFim as dependências também parecem corretas: $ ldd -v libsatprotocolELGIN32bits.so linux-gate.so.1 => (0xb7742000) libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb6371000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb61bb000) /lib/ld-linux.so.2 (0x8005d000) Version information: ./libsatprotocolELGIN32bits.so: libc.so.6 (GLIBC_2.7) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.1.3) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.1) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.0) => /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libz.so.1: libc.so.6 (GLIBC_2.1) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.1.3) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.0) => /lib/i386-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libc.so.6: ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2 Obrigado a todos que contribuírem.
×
×
  • 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.

The popup will be closed in 10 segundos...
The popup will be closed in 10 segundos...