Michael Hance

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Modbus TCP with node-red #17082
    Michael Hance
    Participant

    Hello,

    @Lawrence,

    I tried to install node-red-contrib-modbus@0.7.0 with several npm command.
    Here error log :

    admin@mtcdt:/opt/node-red# npm install node-red-contrib-modbus-0.7.0.tgz –prod –unsafe-perm
    npm WARN package.json mts-gpio@ No description
    npm WARN package.json mts-gpio@ No repository field.
    npm WARN package.json mts-gpio@ No README data
    npm WARN package.json mts-mcard@ No description
    npm WARN package.json mts-mcard@ No repository field.
    npm WARN package.json mts-mcard@ No README data
    npm WARN package.json mts-serial@ No description
    npm WARN package.json mts-serial@ No repository field.
    npm WARN package.json mts-serial@ No README data
    /
    > serialport@4.0.7 install /opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport
    > node-pre-gyp install –fallback-to-build

    node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v11-linux-arm.tar.gz
    node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@0.10.40 (node-v11 ABI) (falling back to source compile with node-gyp)
    gyp ERR! build error
    gyp ERR! stack Error: not found: make
    gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
    gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
    gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
    gyp ERR! stack at Object.oncomplete (evalmachine.<anonymous>:108:15)
    gyp ERR! System Linux 3.12.27
    gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release/serialport.node” “–module_name=serialport” “–module_path=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release”
    gyp ERR! cwd /opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport
    gyp ERR! node -v v0.10.40
    gyp ERR! node-gyp -v v1.0.1
    gyp ERR! not ok
    node-pre-gyp ERR! build error
    node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build –fallback-to-build –module=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release/serialport.node –module_name=serialport –module_path=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release’ (1)
    node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
    node-pre-gyp ERR! stack at maybeClose (child_process.js:766:16)
    node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
    node-pre-gyp ERR! System Linux 3.12.27
    node-pre-gyp ERR! command “node” “/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
    node-pre-gyp ERR! cwd /opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport
    node-pre-gyp ERR! node -v v0.10.40
    node-pre-gyp ERR! node-pre-gyp -v v0.6.32
    node-pre-gyp ERR! not ok
    Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build –fallback-to-build –module=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release/serialport.node –module_name=serialport –module_path=/opt/node-red/node_modules/node-red-contrib-modbus/node_modules/node-modbus/node_modules/serialport/build/Release’ (1)

    npm ERR! serialport@4.0.7 install: node-pre-gyp install --fallback-to-build
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the serialport@4.0.7 install script.
    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! System Linux 3.12.27
    npm ERR! command “node” “/usr/bin/npm” “install” “node-red-contrib-modbus-0.7.0.tgz” “–prod” “–unsafe-perm”
    npm ERR! cwd /opt/node-red
    npm ERR! node -v v0.10.40
    npm ERR! npm -v 1.4.28
    npm ERR! code ELIFECYCLE
    npm ERR! not ok code 0

    I have same result with :

    npm install node-red-contrib-modbus@0.7.0
    npm install node-red-contrib-modbus.tgz (.tgz downloaded from website with 0.7.0 version)

    and tried these previous commands with –unsafe-perm, –prod and/or –build-from-source

    I can see serialport-v4.0.7-node-v11-linux-arm.tar.gz not exist and i don’t know how to prevent this error

    in reply to: Modbus TCP with node-red #16991
    Michael Hance
    Participant

    @Lawrence
    Sorry, i made a mistake:

    because our nodejs version of Conduit gateway is 0.11.1 and can’t be updated

    it’s nodejs 0.10.40 not 0.11.1. The 0.11.1 is the version of node-red. Do you know the nodejs requirement for node-red@0.14.1 (the required version for node-modbus package)

    • This reply was modified 7 years, 2 months ago by Michael Hance.
    in reply to: Modbus TCP with node-red #16988
    Michael Hance
    Participant

    @Lawrence

    I checked the following site : https://libraries.io/npm/node-red-contrib-modbus/0.4.8

    I don’t know if I can trust it, but from the version 0.4.8 the nodejs requirement was 0.13.4.
    Comments above show that we have limitations, because our nodejs version of Conduit gateway is 0.11.1 and can’t be updated :

    However, it is not possible to upgrade nodejs beyond 0.10.x due to the Conduit being restricted to the armV5tej instruction set.

    In your case, do you remember the version of nodejs and npm that you have used before ? It is nice of you to ask your friends about their versions.

    @Peter

    I tried to install pymodbus two hours ago. I had some compilation errors but the package pymodbus seems to run.
    With your advice i’m going to reinstall pymodbus

    in reply to: Modbus TCP with node-red #16985
    Michael Hance
    Participant

    Thank you,

    I start to implement my solution.

    About set up, you said :

    pip install pyModbusTCP

    It’s only a modbus client, so i replaced pyModbusTCP package with pymodbus package because i need to implement a modbus server on Conduit.

    Do you think there will be a problem running if I install the pymodbus package ? Can the Conduit gateway support a modbus server ?

    in reply to: Modbus TCP with node-red #16877
    Michael Hance
    Participant

    Thank you for this alternative. I thought about a pythonic solution too.

    I think i’ll try that. For init script at startup, do you have recommendation about linux folder I need to use to start my python server ?

    in reply to: Modbus TCP with node-red #16857
    Michael Hance
    Participant

    Thank you for your reply,

    I wanted to know if it was possible because in another topic (here : http://www.multitech.net/developer/forums/topic/node-red-nodes-available/#post-13689) M. Lawrence Griffiths said he had managed to use the node-red modbus package. I don’t know what kind of product he used but today i have a MTCDT-210A Conduit and it seems we can’t use this node-red package on this conduit. My use case is : getting datas from LoRa and put them in a ModBus server with node-red. So, i will try to find another solution.

    • This reply was modified 7 years, 2 months ago by Michael Hance.
Viewing 6 posts - 1 through 6 (of 6 total)