GithubHelp home page GithubHelp logo

the-ajk / gt-511c3 Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 79.0 11.71 MB

Nodejs module for fingerprint scanner - TTL (GT-511C3) (SEN-11792)

License: Other

JavaScript 15.00% C++ 39.97% C 3.42% HTML 40.15% Clarion 1.46%

gt-511c3's People

Contributors

the-ajk avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gt-511c3's Issues

Port opening error

I am trying to connect the pi to the GT-511C3. However, I get the following error with your sample code.

init GT511-C3 at 9600 baud...
events.js:161
      throw er; // Unhandled 'error' event
      ^

Error: Port is opening
    at SerialPort.open (/home/rohin/fingerprint/node_modules/gt511c3/node_modules/serialport/lib/serialport.js:160:24)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:607:11)
    at run (bootstrap_node.js:422:7)
    at startup (bootstrap_node.js:143:9)
    at bootstrap_node.js:537:3

Note: When I try to open the same port /dev/ttyS1 in python (pyserial) or even through screen. The port opens fine.

I was unable to install serialportv2 (as per your package spec), I had installed serialport v4.0.7 instead.

Would that be causing this?

May be helpful -

node -v
v7.6.0

Any help is appreciated. Thanks!

init err: undefined

First off thanks for all the work you put into here.

I am trying to get this to work with a raspberry pi 3 B with node version 4.2.1 and npm 2.14.7
When I run the example code I am getting an error
init err: undefined
I console logged the error and am getting the message
didnt match any baudrate!
Not quite sure where to go with this

Will work with GT-511C1R and raspberrypi2?

Hi
As this is for GT511C3 and I have GT511C1R module I am confused little bit.
I do know that both are very similar and have used arduino library of GT511C3 on the same
But unsure about image upload/download implementation of bot as Arduino library does not support
Also I want to use it with raspberry pi 2 and PL2303HX USB to ttl so that I can easily connect both
Raspberry pi 2 USB port :-> ttl :-> GT511C1R
I will have a serial port through this converter which I can use.But still want to ensure that It should work.
Also do I need potential divider between the ttl and FPS module same as arduino interfacing
I should be able to do everything image upload/download authentication identification enrolling etc
Thanks

gt511c3 wont work after some time

i have a wait finger function and an identify function in it.this identify function is always running.but it wont give answer after some time not working with it.

Question regarding writeSync

In example.js line 218:
rele3.writeSync(0);
setTimeout(function() {
rele3.writeSync(1);
}, 1000);

I'm not sure what this section of code does. Can someone give me a hint? Where I'm even writing this to? Also, why it's low and then high?

Thanks!

require is not defined

First when i've used npm install gt511c3 , it didn't work for me it gives an ERR until i've figure it out then the serialport gives an error. To install serialport i've used npm install serialport. Then paste it on a folder node_modules.

Now my problem is var GT511C3 = require('gt511c3');
what should be the considerations with this part?

Errors installing

I'm having issues with installing. this is my error

pi@raspberrypi:~ $ sudo npm install gt511c3

[email protected] install /home/pi/node_modules/serialport
node-pre-gyp install --fallback-to-build

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.8.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/serialport/.node-gyp"
make: Entering directory '/home/pi/node_modules/serialport/build'
make: *** No rule to make target '../.node-gyp/7.8.0/include/node/common.gypi', needed by 'Makefile'. Stop.
make: Leaving directory '/home/pi/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.34-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm"
gyp ERR! cwd /home/pi/node_modules/serialport
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/pi/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.34-v7+
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/pi/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/node_modules/serialport
node-pre-gyp ERR! node -v v7.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.13
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/node_modules/serialport/build/Release/node-v51-linux-arm' (1)
/home/pi
├── [email protected]
└─┬ [email protected]
└── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm WARN In [email protected] replacing bundled version of node-pre-gyp-github with [email protected]
npm ERR! Linux 4.4.34-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "gt511c3"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-04-02T12_32_27_310Z-debug.log

Could this be as simple as permissions?

getting error when use npm install gt511c3

D:\node\fingureprint>npm install gt511c3

[email protected] install D:\node\node_modules\serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
node-pre-gyp verb cli 'D:\node\node_modules\serialport\node_modules\node-
pre-gyp\bin\node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | ia32
node-pre-gyp verb command install []
node-pre-gyp info check checked for "D:\node\node_modules\serialport\build\Relea
se\node-v57-win32-ia32\serialport.node" (not found)
node-pre-gyp http GET https://github.com/voodootikigod/node-serialport/releases/
download/2.0.5/node-v57-win32-ia32.tar.gz
node-pre-gyp http 404 https://github.com/voodootikigod/node-serialport/releases/
download/2.0.5/node-v57-win32-ia32.tar.gz
node-pre-gyp http Pre-built binary not available for your system, looked for htt
ps://github.com/voodootikigod/node-serialport/releases/download/2.0.5/node-v57-w
in32-ia32.tar.gz (falling back to source compile with node-gyp)
node-pre-gyp verb command build [ 'rebuild' ]

D:\node\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Pro
gram Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp
\bin\node-gyp.js" clean ) else (node "" clean )

D:\node\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Pro
gram Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp
\bin\node-gyp.js" configure --fallback-to-build --module=D:\node\node_modules\se
rialport\build\Release\node-v57-win32-ia32\serialport.node --module_name=serialp
ort --module_path=D:\node\node_modules\serialport\build\Release\node-v57-win32-i
a32 ) else (node "" configure --fallback-to-build --module=D:\node\node_modules
\serialport\build\Release\node-v57-win32-ia32\serialport.node --module_name=seri
alport --module_path=D:\node\node_modules\serialport\build\Release\node-v57-win3
2-ia32 )

D:\node\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Pro
gram Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp
\bin\node-gyp.js" build --fallback-to-build --module=D:\node\node_modules\serial
port\build\Release\node-v57-win32-ia32\serialport.node --module_name=serialport
--module_path=D:\node\node_modules\serialport\build\Release\node-v57-win32-ia32
) else (node "" build --fallback-to-build --module=D:\node\node_modules\serialp
ort\build\Release\node-v57-win32-ia32\serialport.node --module_name=serialport -
-module_path=D:\node\node_modules\serialport\build\Release\node-v57-win32-ia32 )

D:\node\node_modules\serialport\build\binding.sln : error MSB3411: Could not lo
ad the Visual C++ component "VCBuild.exe". If the component is not installed, e
ither 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Fra
mework 3.5, or 2) install Microsoft Visual Studio 2008.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/child_proces
s.js:197:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallb
ack-to-build" "--module=D:\node\node_modules\serialport\build\Release\node
-v57-win32-ia32\serialport.node" "--module_name=serialport" "--module_path=D:\
node\node_modules\serialport\build\Release\node-v57-win32-ia32"
gyp ERR! cwd D:\node\node_modules\serialport
gyp ERR! node -v v8.1.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-
to-build --module=D:\node\node_modules\serialport\build\Release\node-v57-win32-i
a32\serialport.node --module_name=serialport --module_path=D:\node\node_modules
serialport\build\Release\node-v57-win32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\node\node_modules\se
rialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:897:16)
node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/chi
ld_process.js:208:5)
node-pre-gyp ERR! System Windows_NT 6.1.7600
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\node\node

modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "-
-fallback-to-build"
node-pre-gyp ERR! cwd D:\node\node_modules\serialport
node-pre-gyp ERR! node -v v8.1.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.13
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\node\node

modules\serialport\build\Release\node-v57-win32-ia32\serialport.node --module_na
me=serialport --module_path=D:\node\node_modules\serialport\build\Release\node-v
57-win32-ia32' (1)
npm WARN enoent ENOENT: no such file or directory, open 'D:\node\package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm WARN [email protected] had bundled packages that do not match the required ve
rsion(s). They have been replaced with non-bundled versions.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\India\AppData\Roaming\npm-cache_logs\2017-07-18T05_13_47_
800Z-debug.log

D:\node\fingureprint>

Unable to fetch gt511c3 via npm install

npm http GET https://registry.npmjs.org/gt511c3

npm ERR! Error: failed to fetch from registry: gt511c3
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/bxxxxxx/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "node" "/usr/bin/npm" "install" "gt511c3"
npm ERR! cwd /home/bxxxxxxx
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: gt511c3
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bxxxxxxx/npm-debug.log
npm not ok

turn led on

Hello, this is a great module, but I have problems setting the led on, do you happen to have the example for that?

Greetings!

supports Raspberry?

Hi! i'm working in a project with a raspberry, does this library supports the raspberry pi?

Thanks!

Issues installing it on Raspberry Pi 2

Hi,

I'm having an issue installing it on my pi 2. It keeps failing with this error. Does anyone have any advice regarding this? It seems like it's an issue for raspberry pi 2.

pi@raspberrypi /usr/local/bin $ sudo npm install gt511c3

[email protected] install /usr/local/bin/node_modules/gt511c3/node_modules/serialport
node-pre-gyp install --fallback-to-build

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/iojs-3.3.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp"
make: Entering directory '/usr/local/bin/node_modules/gt511c3/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../node_modules/nan/nan_new.h:190:0,
from ../node_modules/nan/nan.h:80,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBasev8::Signature::return_t NanIntern::Factoryv8::Signature::New(NanIntern::Factoryv8::Signature::FTH, int, NanIntern::Factoryv8::Signature::FTH_)':
../node_modules/nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to 'v8::Signature::New(v8::Isolate_, NanIntern::Factoryv8::Signature::FTH&, int&, NanIntern::Factoryv8::Signature::FTH_&)'
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
^
../node_modules/nan/nan_implementation_12_inl.h:181:76: note: candidate is:
In file included from /usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/node.h:42:0,
from ../node_modules/nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/v8.h:4450:27: note: static v8::Localv8::Signature v8::Signature::New(v8::Isolate_, v8::Handlev8::FunctionTemplate)
static Local New(
^
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/v8.h:4450:27: note: candidate expects 2 arguments, 4 provided
In file included from ../src/serialport.h:5:0,
from ../src/serialport.cpp:3:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:171:25: error: redefinition of 'template v8::Local NanEnsureLocal(v8::Local)'
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:166:25: note: 'template v8::Local NanEnsureLocal(v8::Handle)' previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../node_modules/nan/nan.h:564:13: error: 'node::smalloc' has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:564:35: error: expected ',' or '...' before 'callback'
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)':
../node_modules/nan/nan.h:568:50: error: 'callback' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:568:60: error: 'hint' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(const char
, uint32_t)':
../node_modules/nan/nan.h:575:67: error: call of overloaded 'New(v8::Isolate
, const char&, uint32_t&)' is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:575:67: note: candidates are:
In file included from ../node_modules/nan/nan.h:25:0,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Handlev8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/local/bin/node_modules/gt511c3/node_modules/serialport/.node-gyp/iojs-3.3.1/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char_' to 'char_'
In file included from ../src/serialport.h:5:0,
from ../src/serialport.cpp:3:
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:579:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), size)' from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanBufferUse(char_, uint32_t)':
../node_modules/nan/nan.h:586:12: error: 'Use' is not a member of 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
serialport.target.mk:90: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *_* [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/usr/local/bin/node_modules/gt511c3/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/bin/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.13-v7+
gyp ERR! command "/usr/local/bin/iojs" "/usr/local/bin/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.6.3" "--major=1" "--minor=6" "--patch=3" "--runtime=node" "--node_abi=node-v45" "--platform=linux" "--target_platform=linux" "--arch=arm" "--target_arch=arm" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=/usr/local/bin/node_modules/gt511c3/node_modules/serialport/build/serialport/v1.6.3/Release/node-v45-linux-arm" "--remote_path=./serialport/v1.6.3/Release/" "--package_name=node-v45-linux-arm.tar.gz" "--staged_tarball=build/stage/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz"
gyp ERR! cwd /usr/local/bin/node_modules/gt511c3/node_modules/serialport
gyp ERR! node -v v3.3.1
gyp ERR! node-gyp -v v3.2.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/iojs rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.6.3 --major=1 --minor=6 --patch=3 --runtime=node --node_abi=node-v45 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/usr/local/bin/node_modules/gt511c3/node_modules/serialport/build/serialport/v1.6.3/Release/node-v45-linux-arm --remote_path=./serialport/v1.6.3/Release/ --package_name=node-v45-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/local/bin/node_modules/gt511c3/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:764:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.1.13-v7+
node-pre-gyp ERR! command "/usr/local/bin/iojs" "/usr/local/bin/node_modules/gt511c3/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/bin/node_modules/gt511c3/node_modules/serialport
node-pre-gyp ERR! node -v v3.3.1
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/iojs rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.6.3 --major=1 --minor=6 --patch=3 --runtime=node --node_abi=node-v45 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/usr/local/bin/node_modules/gt511c3/node_modules/serialport/build/serialport/v1.6.3/Release/node-v45-linux-arm --remote_path=./serialport/v1.6.3/Release/ --package_name=node-v45-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.6.3/Release/node-v45-linux-arm.tar.gz' (1)
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/iojs" "/usr/local/bin/npm" "install" "gt511c3"
npm ERR! node v3.3.1
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/bin/npm-debug.log

I have a problem with a serial communication on raspberry pi 2B.

First of all, sorry for my bad english skills.

I finished all settings. (ttyAMA0, 9600)
But, when I excute the code,

ledON error: undefined
init err: undefined
and so on..

Raspberry pi couldn't find all the functions in fps.
I installed serialport, but it seems like that it couldn't construct the fps object.
Do you have any solution regarding this problem?

setTemplate not working

Hy. I'm using a GT-511C1R with a Raspberry Pi 3 Model B (also I'm new to nodejs) and i would like to retrive the templete for a specific ID so that i can insert it into an external database. So i ran the example.js and used the getTemplate function. The function worked but after it i could not run any other function, every action was returning undefined (but pressing 1 and 2 was turning on/off the led and returning an undefined), also i could not exit with 0, same error. Anyway, the tpl file was created and after i unplugged the sensor i relaunched the example.js. i deleted all id's and tryed to use the setTemplate but it returned me the same undefined. Please help me with this problem because my project depends on this. Thank you !

SerialPort initialization

Hae i am new to java i'm used to python i am confused what you mean by serial port initialization?
"Open the serialport and initialize the fingerprint module" ?

View downloaded images

Hi, thank you for this great module.
How can I open the downloaded .tpl files? Or how can I convert them to a current image format?

gt511c3 led timeout

the module wont work after some time and i found out that its because its led gives an error named timeout.what should i do?

Identify always return me 0

Hi, congratulations for this module!!
I'm trying to identify a finger but always ID is 0. The code is the next:

fingerPrintSensor.ledONOFF(fingerPrintSensor.LED_ON);
fingerPrintSensor.waitFinger(10000)
    .then(fingerPrintSensor.captureFinger(0))
    .then(function() {
        return fingerPrintSensor.identify();
    }, function(err){console.log(err)})
    .then(function (ID){
        console.log("identify: ID = " + ID);
    }, function(err){console.log(err)}).done();

Also it returns me 0 when I put a finger print that is not in database.

Why I have this issue?

Lots of thanks

Why I have this issue?

Lots of thanks

isPressFinger gets pressed by itself

I tried to detect whenever someone presses the module but it looks the function gets fired even if no finger is positioned, the same happens with the waitFinger.

var GT511C3 = require('gt511c3');
var fps = new GT511C3('/dev/tty.usbserial-A800K5UT');
console.log('starting now');
fps.init().then(
    function() {
        //init ok 
        fps.ledONOFF(1);
        fps.waitFinger(8000).then(function() {
            console.log('waitFinger: pressed!');
        }, function(err) {
            console.log('waitFinger err: ' + fps.decodeError(err));
        });


    },
    function(err) {
        console.log('init err: ' + err);
    }
);

Raspberry Pi 3 init timeout

Hello,
I've got some error message from example.js

init GT511-C3 at 9600 baud...
init error: timeout!
serialport successfully closed!
init GT511-C3 at 115200 baud...
TypeError: There's no write queue for that file descriptor (after write)!

I've tried on Raspberry Pi 2 and it's run completely. Any idea or suggestion please?

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.