• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Usage of Fieldbus in and out and FRAM read and write nodes
#1
Is there an image which includes both Fieldbus and FRAM nodes?
hilschernetpi/netpi-nodered-fieldbus
hilschernetpi/netpi-nodered-fram

  Reply
#2
No there isn't. The intention was to introduce the different Nodes separately in single container images. Each Docker Hub repository links to the related github sources where you can easily examine the file dockerfile that tells you what exaclty is installed in the container. Going this way helps to better understand what each node needs in source code to get it installed within Node-RED.

You maybe have recognized there is also an example for Node-RED with RFID uploaded that you need when the NPIX-RFID extension module is about to be released. There will come many many more Node-RED nodes in future. When puting them all in a single Node-RED container you could get easily overwhelmed with all the installation files needed for all the nodes and then finally you lose the overview.

But netPI invites everybody to contribute and to build own containers. Also Docker and Git are no "ghosts" and creating test accounts is a thing of some minutes. So try it yourself to make a Fieldbus and FRAM combo container. I would clone Fieldbus sources and would add just the two files needed for the FRAM node.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
Thanks for pointing me into the right direction to make a Fieldbus and FRAM combo container.
https://hub.docker.com/r/schranz/netpi-n...dbus-fram/
  Reply
#4
Trying to combine the latest Fieldbus and FRAM container I get following built error:
https://hub.docker.com/r/schranz/netpi-n...yyuzbkxqg/
Would someone be able to help me get it to built.
  Reply
#5
Well I have the following recommendation for you.

All Hilscher example codes are optimized to make the docker image as small as possible.

Because of this you will find a single "RUN" command that installs everything in a single command:

#do installation
RUN apt-get update \
&& apt-get install curl libboost-filesystem1.62-dev libboost-date-time1.62-dev libjansson-dev p7zip-full build- essential \ and so on

You can change for tests the whole script file to multiple "RUN" commands like

RUN apt-get update
RUN apt-get install curl libboost-filesystem1.62-dev libboost-date-time1.62-dev libjansson-dev p7zip-full build- essential and so on

By this method the automatic build process gives you a better result in the log file then that maybe helps you why the build process does not work on the web.

Another question is: do you have a Raspberry Pi 3 instead where you can compile the container locally to debug why it does not work?

As next your Fieldbus Container uses "FROM resin/armv7hf-debianConfusedtretch" as first command. So it loads Debian Stretch as base image. Just for a test change it to "FROM resin/armv7hf-debian:jessie" which used Debian:jessie as OS. This one ise used by the FRAM node. And it works with the Fieldbus node as well.





You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#6
Yes, it looks like it has something to do with the used base image.

I do get a built error if i change from jessie to stretch in the netpi-nodered-fram image.
https://hub.docker.com/r/schranz/netpi-n...taymxrm6k/

And i do get a built error if i change from stretch to jessie in the netpi-nodered-fieldbus image.
https://hub.docker.com/r/schranz/netpi-n...zouutprne/

Could you please provide a netpi-nodered-fram image based on stretch?

As per your suggestion I need to have the latest netpi-nodered-fieldbus image to get my reported errror resolved.
https://www.netiot.com/forum/?tx_typo3fo...322c49d61b

  Reply
#7
188 Wrote:As per your suggestion I need to have the latest netpi-nodered-fieldbus image to get my reported errror resolved.

No this is not what I was saying. I said it is worth it to update the system software to version 1.1.0.0 and also to update the fieldbus node to the latest version. I did not say it will solve your reported error. With the latest version I see a chance in case the error will happen again to have access to the latest source here to debug and reconstruct than with the first fieldbus node version we made 1 year ago.

The second thing I have to mention is that the fieldbus node is 100% a development made by us. In contrast the FRAM node is just 10% ours cause it is based on the very official i2c npm package from the www we do not own. We just added the front end node red bubble to it. So what I am saying is that I am not 100% sure that the i2c npm package we rely on is compatible with debian stretch at all. I saw in your log file that exactly at this point the Docker hub stopped operation with an error.

Also you should recognize that the latest fieldbus node container uses npm in the version 8.x.x, while the fram node is using npm in the versio 6.x ... "&& curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - \". So this can be also a reason why it is not working. So you can go back to npm v6.x.x in your conatiner too while using jessie.

I will have a look on the fram container next week, if I can upgrade it.



You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#8
I made an update of the FRAM node. With DebianConfusedtretch and node.js V8.x the bcrypt library needs python library installed prior its installation as it says in the repo https://www.npmjs.com/package/bcrypt
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#9
Thank you very much for your help.
With this information I could build my docker image using the latest fieldbus and fram nodes.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  2 MAC addresses for fieldbus RJ45 ports tad 2 2,102 March-11th-2021, 01:17 PM
Last Post: tad
  Internet on the fieldbus-side COswald 21 9,090 March-1st-2021, 07:41 AM
Last Post: COswald
  Receive at startup additional data through the Fieldbus Port Schranz 1 2,812 September-10th-2020, 10:55 AM
Last Post: Armin@netPI
  Fieldbus Ports not working Schoko 13 8,527 June-29th-2020, 09:43 PM
Last Post: Armin@netPI
  [SOLVED] activate LED1/2 with Node-RED + fieldbus nodes container Christian_Rau 6 4,661 October-21st-2019, 10:30 AM
Last Post: Armin@netPI
  netPI Node-Red fieldbus node Error PersEE 5 5,075 October-8th-2019, 03:55 PM
Last Post: Armin@netPI
  [SOLVED] Help with fieldbus node Farani 5 3,875 August-20th-2019, 07:22 AM
Last Post: Armin@netPI
  [SOLVED] WebConfig netpi-nodered-fieldbus JohnyD94 13 7,871 May-6th-2019, 12:20 AM
Last Post: JohnyD94
  [SOLVED] Usage of overlay driver adeeljsid 4 3,789 October-18th-2018, 10:13 AM
Last Post: Armin@netPI
  usage as WLAN access point with hostapd FrankJacob 1 1,916 July-6th-2018, 10:34 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)