GithubHelp home page GithubHelp logo

rumpeltux / brother-scand Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darsto/brother-scand

21.0 21.0 10.0 207 KB

Network driver for Brother scanner devices. Daemon for press-to-scan functionality.

License: MIT License

Makefile 2.16% C 73.16% Shell 6.97% CMake 1.48% C++ 10.91% Python 5.32%

brother-scand's People

Contributors

darsto avatar destynova avatar rumpeltux avatar sgtell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brother-scand's Issues

DCP7065DN invalid header magic number error

As per the title, i tried the software with a DCP7065DN but I have this error:

ERR   data_channel.c:353: 192.168.1.4: invalid header magic number (3 != 0x07)
{
  00000000: 8203 0001 0084 8008 7a50                | ........zP
}
ERR   data_channel.c:739: 192.168.1.4: failed to process data. The channel will be closed.
DEBUG data_channel.c:746: data_channel->process_cb = data_channel_set_paused;

If needed I can provide the full log.
Is there any chance to support this device?

SIGSEGV in data_channel_set_item

gdb log:

$ gdb --args ./build/brother-scan-cli -d -c out/brother.config
Reading symbols from ./build/brother-scan-cli...
(gdb) r
Starting program: /home/patrycja/Downloads/brother-scand/build/brother-scan-cli -d -c out/brother.config

Program received signal SIGSEGV, Segmentation fault.
memcpy () at src/string/x86_64/memcpy.s:18
18	src/string/x86_64/memcpy.s: No such file or directory.
(gdb) bt full
#0  memcpy () at src/string/x86_64/memcpy.s:18
No locals.
#1  0x000055555555d2d4 in data_channel_set_item (data_channel=0x7fffffffe160, 
    item=0x0) at data_channel.c:796
No locals.
#2  0x0000555555556796 in main (argc=4, argv=0x7fffffffe318) at scanner_cli.c:59
        option = -1
        config_path = 0x7fffffffe702 "out/brother.config"
        data_channel = {conn = 0x0, process_cb = 0x0, tempfile = 0x0, 
          scan_id = 0, page_data = {id = 0, remaining_chunk_bytes = 0}, 
          scanned_pages = 0, thread = 0x0, params = {{id = 0 '\000', 
              value = '\000' <repeats 15 times>} <repeats 16 times>}, xdpi = 0, 
          ydpi = 0, width = 0, height = 0, config = 0x7ffff7ffefb0, item = 0x0, 
          file_format = 0x0}

Brother ADS 3600W

Hi, I am currently trying to make it work with a ADS 3600W.

Scanning works but the resulting jpeg is corrupt darsto#8 .

So I tried the RAW option and the OCR but both results in corrupt images.

Is there anything known that it won't work or is there a workaround to repair the jpeg files (if they are not broken too) ?

$HOME is undefined

Hello,

$HOME is undefined when trying to use it from hook script, would it be possible to add it?

Thank you.

I fixed config.c file because it didn't let me run the command "make"

Hi, I'm running Linux Mint 21 and when trying to run the command "make" it gave this error:

gcc -c -MM -MF build/config.d config.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/config.o config.c
config.c:58:65: error: argument 3 of type ‘char *’ declared as a pointer [-Werror=array-parameter=]
   58 |                       const struct item_config *template, char *name) {
      |                                                           ~~~~~~^~~~
config.c:16:64: note: previously declared as an array ‘char[1024]’
   16 |                    const struct item_config *template, char name[1024]);
      |                                                        ~~~~~^~~~~~~~~~

cc1: all warnings being treated as errors
make: *** [Makefile:52: build/config.o] Error 1

I fixed it with the help of ChatGPT.

In config.c, on line 16, I changed:

const struct item_config *template, char name[1024]);

for:

const struct item_config *template, char *name);

And that way I could successfully install it.

I hope this helps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.