Linux Installation

This information was graciously provided by one of our customers experienced with Linux.

Linux installation

Those using linux will need to make arrangements to ensure that the USB device name comes up consistently.

First, you should open a terminal window on the linux box.

Next, power up the Emblaser, and then plug the USB cable into the computer.

In the terminal window, type:

user@box:~: lsusb

You should see something like

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 10f1:1a60 Importek
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 011: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The "Arduino" is the Emblaser, and has a vendor ID of 2341, and a product ID of 0043

In addition, it is worth trying

user@box:~$ dmesg | tail

which should show something like

[ 5094.273486] usb 5-1: new full-speed USB device number 11 using xhci_hcd
[ 5094.349944] usb 5-1: New USB device found, idVendor=2341, idProduct=0043
[ 5094.349966] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 5094.349978] usb 5-1: Manufacturer: Arduino (www.arduino.cc)
[ 5094.349988] usb 5-1: SerialNumber: 55432333038351218202
[ 5094.350482] usb 5-1: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 5094.353084] cdc_acm 5-1:1.0: ttyACM0: USB ACM device

The vendor ID and product ID can now be used to make a udev rule file in /etc/udev/rules.d so that a persisting USB device name remains between reboots and reconnections of the Emblaser. Change directory in the terminal window.

user@box:~$ cd /etc/udev/rules.d

now create a new rules file with gedit using sudo

user@box:~/etc/udev/rules.d/$ sudo gedit 99-usb-serial.rules

in gedit, you need to enter and then save the following text

SUBSYSTEM=="tty", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0043", GROUP="users", MODE="0666"

you can check it has been saved by doing a directory listing, which should show something like this:

user@box:/etc/udev/rules.d$ ls
README 70-persistent-net.rules 99-usb-serial.rules

You then need to reload the rules with

user@box:/etc/udev/rules.d$ sudo udevadm trigger

It is worth adding your username to the list of dialout users, since the serial device is the "dialout" serial port

user@box:/etc/udev/rules.d$ sudo usermod -a -G dialout YOUR_USER_NAME_HERE

You will need to have java runtime installed on your machine

You can then download the UniversalGCodeSender to suit either 32 bit or 64 bit architecture from

https://github.com/winder/Universal-G-Code-Sender/downloads

After unzipping the zip file in a suitable directory, you will need to add executable permissions to the start.sh script

user@box:~/Emblaser/$ chmod 777 start.sh

You can then start it by typing

user@box:~/Emblaser/$ ./start.sh &

The UniversalGcodeSender window should then launch, and UniversalGcodeSender should be able to identify the Emblaser USB serial device if the Emblaser is already plugged in and switched on.

 

Have more questions? Submit a request

Comments

Please sign in to leave a comment.