SerialPort in Galileo Gen 2 running Yocto
See original GitHub issueI’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:
- Created 7 years ago
- Comments:33 (26 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, sorry, issue opened again
For the second test I used serialport@2.0.7-beta5 on both the Galileo and the Linux PC.