question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SerialPort in Galileo Gen 2 running Yocto

See original GitHub issue

I’m trying to set a Serial Communication in a Intel Galileo Gen 2 with Linux Yocto, but I only get the message “Illegal Instruction”.

Issue opened before in the wrong place: https://github.com/rwaldron/johnny-five/issues/1086

The code:

var Serialport = require("serialport").SerialPort;
var sp = new Serialport("/dev/ttyS0", {
  baudRate: 57600
});

sp.on("open", function() {
  console.log("Port is open!");

  // Once the port is open, you may read or write to it.
  sp.on("data", function(data) {
    console.log("Received: ", data);
  });

  sp.write(new Buffer("0120000003"));
});

Already tried to use the last beta version of SerialPort.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:33 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
ortizviniciuscommented, Apr 9, 2016

Ok, sorry, issue opened again

2reactions
fivdicommented, Apr 9, 2016

For the second test I used serialport@2.0.7-beta5 on both the Galileo and the Linux PC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SerialPort in Galileo Gen 2 running Yocto · Issue #747 - GitHub
I'm trying to set a Serial Communication in a Intel Galileo Gen 2 with Linux Yocto, but I only get the message "Illegal...
Read more >
Building a Linux image for Intel Galileo with the Yocto Project
In the menu bar of the Arduino IDE, navigate to the following: Tools | Serial Port | /dev/ttyACM0. Tools | Board | Intel ......
Read more >
How to Upload Arduino Sketch to Intel Galileo gen 2
2. Upload the code when working with the Yocto-Linux Image · CDC Serial Port · Right Click and Select Update Device Driver option...
Read more >
Getting Started with Intel® Galileo Gen 2 - Emutex
Galileo Gen 2 includes 3 PCAL9535A GPIO expanders, connected to the Quark X1000 via I2C at addresses 0x25, 0x26 and 0x27. They are...
Read more >
Node-RED in Yocto - General
In Debian, I run "npm i node-red-node-serialport" to install the node. But for Yocto, I assume it shouldn't be like this.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found