<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Serial Ports (USB) and NodeJS support]]></title><description><![CDATA[<p dir="auto">I discovered a thread talking about NodeJS support on the Omega2/1. While I have basic Node working - one of the main things to access is the hardware ports such as Serial (over the USB). Interfacing to devices using the USB port - I would like to interface using a "SerialPort" module. Unfortunately the MIPS ports for most modules are lacking. Here is the deal - hardware specific modules require on-platform compilation. So SerialPort (which has versions for x86 and ARM), does NOT currently compile and install. What is the plan to get this ported?</p>
]]></description><link>http://community.onion.io/topic/1537/serial-ports-usb-and-nodejs-support</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 13:02:48 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/1537.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jan 2017 21:30:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Tue, 31 Jan 2017 21:30:31 GMT]]></title><description><![CDATA[<p dir="auto">I discovered a thread talking about NodeJS support on the Omega2/1. While I have basic Node working - one of the main things to access is the hardware ports such as Serial (over the USB). Interfacing to devices using the USB port - I would like to interface using a "SerialPort" module. Unfortunately the MIPS ports for most modules are lacking. Here is the deal - hardware specific modules require on-platform compilation. So SerialPort (which has versions for x86 and ARM), does NOT currently compile and install. What is the plan to get this ported?</p>
]]></description><link>http://community.onion.io/post/10027</link><guid isPermaLink="true">http://community.onion.io/post/10027</guid><dc:creator><![CDATA[Ashu Joshi]]></dc:creator><pubDate>Tue, 31 Jan 2017 21:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Tue, 07 Feb 2017 11:28:26 GMT]]></title><description><![CDATA[<p dir="auto"><img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--+1" title=":thumbsup:" alt="👍" /> <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--+1" title=":thumbsup:" alt="👍" /> I too would love a precompiled version of the <code>serialport</code> <a href="https://www.npmjs.com/package/serialport" rel="nofollow">npm package</a> delivered via <code>opkg</code> as I dont think npm node-gyp compilation is ever going to work.</p>
<p dir="auto">This is the way the <a href="https://downloads.arduino.cc/openwrtyun/1/packages/index.html" rel="nofollow">Arduino Yun</a> supports serial via nodejs (it also uses same chipset and similar openwrt distro).</p>
<p dir="auto">I noticed <code>opkg</code> has a <code>node-usb</code> package one but it doesnt seem to do anything. Cant find it on the file system, neither as npm global package or under <code>/usr/bin</code> directory, I also cant seem to use it via <code>require('usb')</code>.</p>
]]></description><link>http://community.onion.io/post/10622</link><guid isPermaLink="true">http://community.onion.io/post/10622</guid><dc:creator><![CDATA[Steven de Salas]]></dc:creator><pubDate>Tue, 07 Feb 2017 11:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Tue, 07 Feb 2017 16:04:48 GMT]]></title><description><![CDATA[<p dir="auto">You need serial support, not USB support - even if you are using a USB-serial adapter, the kernel presents it to application programs as a serial device, not a USB one.</p>
]]></description><link>http://community.onion.io/post/10653</link><guid isPermaLink="true">http://community.onion.io/post/10653</guid><dc:creator><![CDATA[Chris Stratton]]></dc:creator><pubDate>Tue, 07 Feb 2017 16:04:48 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Fri, 10 Feb 2017 13:46:35 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2787">@Ashu-Joshi</a> <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2602">@chris-stratton</a>, there is a solution for this.</p>
<p dir="auto">See comment in <a href="http://community.onion.io/topic/875/serial-port-communication-using-node-js/7">this link</a>.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2340">@Steven-de-Salas</a> said in <a href="/topic/875/serial-port-communication-using-node-js/7">Serial port communication using Node.js</a>:</p>
<blockquote>
<p dir="auto">Hi guys, I just thought you'd like to know that I got <code>serialport</code> npm module cross compiled for the Omega2 following instructions <a href="https://community.onion.io/topic/1298/omega2-cross-compiler-and-kernel-sources" rel="nofollow">here</a> and <a href="https://github.com/netbeast/docs/wiki/Cross-Compile-NPM-modules" rel="nofollow">here</a>.</p>
<p dir="auto">I will try get a more easily consumable version (maybe another npm package?) but for now feel free to download a working version of serialport@3.0.0 on the following link:</p>
<p dir="auto"><a href="https://github.com/sdesalas/robotics/raw/master/omega2/node-serialport-v3.0.0.tar.gz" rel="nofollow">https://github.com/sdesalas/robotics/raw/master/omega2/node-serialport-v3.0.0.tar.gz</a></p>
<p dir="auto">You just need to untar and move the <code>node_modules/serialport</code> and <code>node_modules/.bin</code> folders to <code>node_modules</code> in your project or global npm folder.</p>
<hr />
<p dir="auto"><strong>Even better:</strong></p>
<p dir="auto">Here is a fork containing the cross-compiled binaries:</p>
<p dir="auto"><a href="https://github.com/sdesalas/node-serialport-omega2" rel="nofollow">https://github.com/sdesalas/node-serialport-omega2</a></p>
<p dir="auto">Since its in github you can install via npm:</p>
<pre><code>$ npm install github:sdesalas/node-serialport-omega2
</code></pre>
<p dir="auto">Cherio.<br />
S</p>
</blockquote>
]]></description><link>http://community.onion.io/post/10897</link><guid isPermaLink="true">http://community.onion.io/post/10897</guid><dc:creator><![CDATA[Steven de Salas]]></dc:creator><pubDate>Fri, 10 Feb 2017 13:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Wed, 15 Feb 2017 02:14:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2340">@Steven-de-Salas</a> Many thanks. I attempted to use it but unlike the Python code that can read &amp; dump the GPS module - while I do get the serial port to open - I cannot get it to receive and print any data to the console. It seems slow as well to open the port. I will probably debug it more tomorrow.</p>
]]></description><link>http://community.onion.io/post/11114</link><guid isPermaLink="true">http://community.onion.io/post/11114</guid><dc:creator><![CDATA[Ashu Joshi]]></dc:creator><pubDate>Wed, 15 Feb 2017 02:14:16 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Thu, 16 Feb 2017 00:33:41 GMT]]></title><description><![CDATA[<p dir="auto">Might be useful to post the output of <code>stty -F /dev/ttyS[port number]</code> for whatever serial device you are using, while your program is running.</p>
<p dir="auto">One thing I've noticed is that the serial setting defaults can be different than what you'd typically find on a PC linux installation, for example I had a lazy (self written) program that didn't explicitly set <code>cread</code>, and that was by default coming up off (<code>-cread</code>) meaning serial receive was disabled.</p>
]]></description><link>http://community.onion.io/post/11136</link><guid isPermaLink="true">http://community.onion.io/post/11136</guid><dc:creator><![CDATA[Chris Stratton]]></dc:creator><pubDate>Thu, 16 Feb 2017 00:33:41 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Thu, 16 Feb 2017 02:32:48 GMT]]></title><description><![CDATA[<p dir="auto">Ignore my comment, I was using the wrong baud rate.</p>
<p dir="auto">Its working fine.</p>
]]></description><link>http://community.onion.io/post/11138</link><guid isPermaLink="true">http://community.onion.io/post/11138</guid><dc:creator><![CDATA[Mathieu Gosbee]]></dc:creator><pubDate>Thu, 16 Feb 2017 02:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Sun, 26 Mar 2017 01:39:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2340">@Steven-de-Salas</a> How could I get that to work with Node Red please?</p>
]]></description><link>http://community.onion.io/post/12361</link><guid isPermaLink="true">http://community.onion.io/post/12361</guid><dc:creator><![CDATA[austin Sandford]]></dc:creator><pubDate>Sun, 26 Mar 2017 01:39:30 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Mon, 27 Mar 2017 23:18:13 GMT]]></title><description><![CDATA[<p dir="auto">Cross compiled node-red-node-serialport and it all works:</p>
<pre><code>root@Omega-1521:~# node --max-old-space-size=80 /node-red/red.js
The host is: undefined


Welcome to Node-RED
===================

28 Mar 00:13:43 - [info] Node-RED version: v0.15.2
28 Mar 00:13:43 - [info] Node.js  version: v4.3.1
28 Mar 00:13:43 - [info] Linux 4.4.46 mipsel LE
28 Mar 00:13:51 - [info] Loading palette nodes
28 Mar 00:14:18 - [warn] ------------------------------------------------------
28 Mar 00:14:18 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
28 Mar 00:14:18 - [warn] ------------------------------------------------------
28 Mar 00:14:18 - [info] Settings file  : /root/.node-red/settings.js
28 Mar 00:14:18 - [info] User directory : /root/.node-red
28 Mar 00:14:18 - [info] Flows file     : /root/.node-red/flows_Omega-1521.json
28 Mar 00:14:18 - [info] Server now running at http://192.168.3.1:1880/
28 Mar 00:14:18 - [info] Starting flows
28 Mar 00:14:18 - [info] Started flows
28 Mar 00:14:18 - [info] serial port /dev/ttyACM0 opened at 57600 baud 8N1
</code></pre>
]]></description><link>http://community.onion.io/post/12408</link><guid isPermaLink="true">http://community.onion.io/post/12408</guid><dc:creator><![CDATA[austin Sandford]]></dc:creator><pubDate>Mon, 27 Mar 2017 23:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to Serial Ports (USB) and NodeJS support on Wed, 15 May 2019 01:53:02 GMT]]></title><description><![CDATA[<p dir="auto">This is a Cross compiled node-red-node-serialport 0.8.1 for Onion omega 2/2+/2 Pro<br />
<a href="https://github.com/t2t-sonbui/Node-Red-Omega-2" rel="nofollow">https://github.com/t2t-sonbui/Node-Red-Omega-2</a></p>
]]></description><link>http://community.onion.io/post/19494</link><guid isPermaLink="true">http://community.onion.io/post/19494</guid><dc:creator><![CDATA[Son Bui]]></dc:creator><pubDate>Wed, 15 May 2019 01:53:02 GMT</pubDate></item></channel></rss>