Skip to main content
shopping_basket Basket 0
Login
Siemens IOT2020 - installing and testing Node-Red, MQTT and SQLITE3
peteroakes
16
With a background in Industrial Electronics, Solutions Architecture and programming, I now spend my time working on my YouTube channel ( https://www.youtube.com/thebreadboardca ) where I create educational videos showing how to use various devices including Test and measurement, Home and industrial Automation, Components and other fun things I am sent to review or include in projects. I will also create many projects to showcase the use of these items

Comments

February 5, 2018 11:01

Hi peter thanks for all the help. I have a big problem when I install any npm. Can you hel me?
The error is in the photo.

[Comment was deleted]

June 11, 2017 08:00

Hello Peter,
Now I am using 2.1.3 and location I have installed is /usr/lib/node_modules. In this version too I am facing the same problem the installed nodes are not visible in node-red web page. Kindly suggest me the solution.

May 1, 2017 09:51

Hi Peter,
I think you were tryharding.
You can download the siemens image here https://cache.industry.siemens.com/dl/files/799/109741799/att_917329/s1/109741799_Example_Image_V2.1.3.zip?download=true .
Where Node-Red is already install and where you can configure serials with the iot200setup command.

Just found this after 2 months working with your tutorial. Better late than never !

0 Votes

April 21, 2017 07:25

Hi Peter im in step 5 of this procedure, when i make opkg to node js and i2c-tools im getting some messages about break existing dependencies, is this something serious? how can i fixed?

root@iot2000:~# opkg install nodejs
Not selecting nodejs 0.10.38 as installing it would break existing dependencies.
Package nodejs (4.2.4-r0) installed in root is up to date.
root@iot2000:~# opkg install sqlite3
Package sqlite3 (3:3.11.0-r0) installed in root is up to date.
root@iot2000:~# opkg install i2c-tools
Not selecting i2c-tools 3.1.1 as installing it would break existing dependencies.
Package i2c-tools (3.1.2-r0) installed in root is up to date.
root@iot2000:~# #fix sshd
root@iot2000:~# opkg install sshd
Package openssh-sshd (7.1p2-r0) installed in root is up to date.
root@iot2000:~#

0 Votes

[Comment was deleted]

[Comment was deleted]

March 16, 2017 10:02

Hi Peter. Thanks for all the videos, it does help a lot. I got my IOT2020 last week so I am reading up on all it can do. Can you drive the GPIO pins also with this NodeRed install like I can do on the Raspberry Pi ? I need to switch some relays on and off from a web page.

0 Votes

March 10, 2017 09:59

Dhinesh, What version of the OS are you using. 2.1.1 or 2.1.2
what folder are you in when you run the command to perform the "npm install......"
There is a minor issue with the default node-red on 2.1.2 that is corrected in the soon to be released 2.1.3. I have been working with Siemens to correct a few discrepancies I found. these are all fixable if you know your way arround node-red but can be confusing otherwise.
I will be posting a new video as quickly as I have the completed solution and or when 2.1.3 is released.

0 Votes

March 10, 2017 09:54

anjaliranika, it looks like Intel has adjusted the folder structures of their repository, I will look into this and try to find a solution (Until they do it again :) ). I will post here ones I have an answer

November 27, 2018 15:10

@peteroakes Hi, I have the same problem. Do you know how to fixed ?

November 27, 2018 15:10

@peteroakes Did you get any solution for that? I got the same problem, same situation. Thank you

March 8, 2017 09:52

Hello sir,

Right now I am working with Siemens IOT 2040, I need to connect this device via modbus and datas to transferred to any Cloud network. The problem is that I followed above steps for installing node-modules but in my node-red web page the installed nodes are not visible. I don't know whether it is in problem with node-red version so please guide me for obtaining the solution.

0 Votes

March 8, 2017 09:56

Hii sir,
When i do opkg update as per the instructions i'm getting following error.. pls help me in solving it out.. i'm new to linux as well as iot2020.. so pls make a response...
i'm pasting the error below:

root@iot2000:/# opkg update
Downloading http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.
wget: bad address 'iotdk.intel.com'
Downloading http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.
wget: bad address 'iotdk.intel.com'
Downloading http://iotdk.intel.com/repos/2.0/iotdk/quark/Packages.
wget: bad address 'iotdk.intel.com'
Downloading http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.
wget: bad address 'iotdk.intel.com'
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (iotdk-all http://iotdk.intel.com/repos/2.0/iotdk/all). Skipping.
* opkg_conf_parse_file: Duplicate src declaration (iotdk-i586 http://iotdk.intel.com/repos/2.0/iotdk/i586). Skipping.
* opkg_conf_parse_file: Duplicate src declaration (iotdk-quark http://iotdk.intel.com/repos/2.0/iotdk/quark). Skipping.
* opkg_conf_parse_file: Duplicate src declaration (iotdk-x86 http://iotdk.intel.com/repos/2.0/iotdk/x86). Skipping.
* opkg_download_backend: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/all/Packages, wget returned 1.
* opkg_download_backend: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages, wget returned 1.
* opkg_download_backend: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/quark/Packages, wget returned 1.
* opkg_download_backend: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages, wget returned 1.

0 Votes

February 20, 2017 10:43

We automated end to end testing solutions for the testing of MQTT protocol based API's. all the requests: Publisher/Subscriber ... can be automated using a very simple tool of ours. We provide test as a service where the complete API requests are automated using Dynamic test inputs (using your api specifications). with or without Security Authentication token. Our framework is already in use by 3 major Comapnies in energy and IOT Product companies for last 2 years. more information can be found on the following link : http://techsage.eu/iot-taas.html
please mail us for free advise and consultations or a demo of our existing test framework.

0 Votes

December 20, 2016 16:57

Hello Peter
A litlle feedback after what im tried....
It seems like when im installing npm it also want to install python-misc package ,but I cannot figure out from where this package src is..
here is terminal output :
******
Installing nodejs (v4.4.3-r1.0) on root.
Configuring nodejs.
root@iot2000:~# opkg install nodejs-npm --force-depends
Installing nodejs-npm (v4.4.3-r1.0) on root.
Installing python-misc (2.7.3-r0.3.0) on root.
Collected errors:
* get_pkg_url: Package python-misc is not available from any configured src.
* opkg_install_pkg: Failed to download python-misc. Perhaps you need to run 'opkg update'?
* opkg_install: Cannot install package nodejs-npm.
*********
I tried to install npm with this command :opkg install nodejs-npm --nodeps
Then npm installs , but I think actually that python-misc are needed because Node-Red would not install..

So that's where I am right now... Hopefully the new image will be out soon :-)

Thanks again for your nice tutorials

Best Regards John

0 Votes

December 20, 2016 16:51

Hello Peter
Thanks for your response . I really appreciate it , and I will try this . Anyway its good news that there will be an upgraded image soon.
Best regards John

0 Votes

December 20, 2016 16:51

Hi Johnny66

I have gone back and reviewed the process and found a few changes have occurred since I wrote the post.
1. The repositories have been re-arranged at intel's end, these are now
/etc/opkg/iotdk.conf
src iotdk-all http://iotdk.intel.com/repos/2.0/iotdk/all
src iotdk-i586 http://iotdk.intel.com/repos/2.0/iotdk/i586
src iotdk-quark http://iotdk.intel.com/repos/2.0/iotdk/quark
src iotdk-x86 http://iotdk.intel.com/repos/2.0/iotdk/x86
OR
src iotdk-all http://iotdk.intel.com/repos/3.5/iotdk/galileo/all
src iotdk-i586 http://iotdk.intel.com/repos/3.5/iotdk/galileo/i586
src iotdk-quark http://iotdk.intel.com/repos/3.5/iotdk/galileo/quark
src iotdk-x86 http://iotdk.intel.com/repos/3.5/iotdk/galileo/x86

with the public available image from Siemens, nodejs is already installed and if npm is not there you may need to run "opkg remove --force-remove nodejs" then "opkg install --force-depends node-js" followed by "opkg install force-depends nodejs-npm". I used the 3.5 packages on my image. this resulted in npm being installed correctly,

There will be a new image release by year end but hopefully much sooner. this will include Nodejs, Node-Red etc preinstalled and ready to work saving alot of time after your image is made, it is currently being finished and tested by Siemens, I have seen it and it looks like it will help a lot to simplify getting up and running from a fresh SD image. I have been working with RS and Siemens to get it completed, As soon as it is released I will let everyone know

0 Votes

December 20, 2016 16:48

Hello Peter , Thanks a lot for your excelent tutorials ! I am deep down into one of the
IOT 2040 , and are strugglig a little . When I try to install nodejs I get this error :

Not selecting nodejs 0.10.38 as installing it would break existing dependencies.
Package nodejs (4.2.4-r0) installed in root is up to date.

It seems like Node already is installed. Also I cannot use npm as it is not installed

Some Ideas would be really helpfull

Best regards John

0 Votes

Related Content

DesignSpark Electrical Logolinkedin