Skip to content

Share the Laser (Hub Mode)

Bernie Link Without a Screen

A Raspberry Pi or an old PC next to the machine shares the laser with no Mac switched on: one-line install, pairing code, remote framing and focus.

Bernie Link shares the laser without a Mac switched on next to it: a small computer placed near the machine (Raspberry Pi, old PC running Linux or Windows) runs the bernie-hub service, with no interface. Devices connect to it as they would to a Mac sharing its laser — same pairing code, local network only — but since there is no screen, each start is confirmed on the device that sends the job.

  • Install on a Raspberry Pi (every model, Raspberry Pi OS 64-bit or 32-bit), another ARM board or a Linux PC, in one line: curl -fsSL https://bernie.websolutis.com/link/install.sh | sudo sh — the package for the machine is downloaded, verified, then installed as a service that starts with the computer; options after sh -s -- (--port, --reseau, --nom); the same line updates it. After that, it updates itself every night, never during a job (to turn it off: sudo systemctl disable --now bernie-link-maj.timer). Windows and installing without Internet: guide docs/BERNIE-LINK.md.
  • Start the service: bernie-hub (first USB port found), or bernie-hub --port /dev/ttyUSB0, --reseau 192.168.1.50 for a Wi-Fi/Ethernet laser; --studio <folder> also serves Bernie Studio to the network’s browsers; --nom "Workshop" changes the name shown. The pairing code is shown at startup (in the terminal or the service log) and stays the same from one start to the next, power cuts included (to find it again: sudo bernie-hub --code); it only changes after too many wrong codes. The service reconnects to the laser by itself after a disconnection and announces itself on the network (Bonjour: by itself on Linux, nothing to install; through the system on Mac and on Windows 10 and later). The service log follows the system language, or --langue fr|en|es|it|de.
  • Galvo board (experimental): bernie-hub --galvo connects the first JCZ “LMC” board (EZCad2) plugged in over USB instead of a GRBL laser (--source fibre|mopa|co2, fiber by default); at install time: … | sudo sh -s -- --galvo (USB access rule included). Connected devices frame with the red pointer and mark on it (Use Bernie Link Board in the Galvo Board block), each marking after its safety question; rotary and external axis not driven yet.
  • K40 (experimental): bernie-hub --k40 connects the first K40 with an M2 Nano board plugged in over USB (--k40-carte M3, --k40-serie <number> if needed; otherwise the model and number of the profile sent by a device); at install time: … | sudo sh -s -- --k40 (USB access rule included). Connected devices frame and engrave on it (Use the K40 of Bernie Link in the K40 Laser block), each job after its safety question.
  • No-go zones and counter: Bernie Link refuses a job or framing that would enter a no-go zone of the device it keeps, and keeps the hour counter and maintenance reminders of its laser (shown to connected devices) — see No-Go Zones and Hour Counter and Maintenance.
  • Send a job: from the iPad, another Mac or a browser, as with a shared Mac. After sending, the device asks “Start the job on “Bernie Link”? The laser will turn on: stay near the machine.”: Start runs the job, Cancel withdraws the request. Nothing starts without this answer, and an unanswered request is withdrawn after two minutes. Only the device that sent the job can confirm it.
  • During the job: Pause and Stop from any connected device; Resume… asks the same question before turning the laser back on.
  • Remote tools: from the connected device, the Laser panel also offers Framing, Focus, Home, Unlock and Move — laser off, except the focus spot, which Bernie Link caps itself (10 % of the controller’s maximum power, 60 s). Bernie Link refuses a job until the laser is ready (alarm, homing, moving) and says why; a job interrupted by the laser (alarm, error) is reported on the device. The maximum speed, acceleration and travel read on the controller are used to set up the device (Adapt the device banner).
  • Job queue: laser busy (a job is running, or another device is waiting for its confirmation)? Add a Job to the Queue…: it waits for its turn (8 at most). Nothing starts by itself: at its turn, the start question is asked again on the device that sent it (no answer within 2 minutes: it is removed and the next one goes); a Mac in Hub mode asks on its screen, where the queue is shown too. The laser card shows the queue (Remove for your own jobs) and “…” started by …. A job placed at the current head position cannot be queued.
  • Shared laser badge: connected to Bernie Link or a Mac (or in Hub mode), the toolbar shows Bernie Link, Shared Mac or Hub Mode with a green dot (laser ready, job running), orange (laser not connected, in alarm) or grey (pairing code to enter, unreachable); a click opens the Laser panel. A Bernie Studio page served by Bernie Link opens on the Laser tab with the code field in view; the code is remembered and the page reconnects by itself next time.
  • Devices and Activity (Laser panel › Connection): connected devices, latest events and, with Bernie Link, New Pairing Code… (the other devices will have to enter the new one).
  • Bernie Link device: Bernie Link can keep a device (work area, speeds, power, origin, port speed, firmware) and offer it to every connected device: Laser panel › Connection › Send Device “…”… (after the question; never during a job) — Bernie Link keeps it from one start to the next and reconnects to the laser with it. A connected device that uses another device sees “…” uses the device “…” and Use This Device. A Mac in Hub mode offers its active device the same way. At start-up: --appareil <catalog machine> (for example ortur-laser-master-2) or --appareil <.json profile>.
  • Relay to a Ruida controller: a web page cannot talk to Ruida controllers (UDP network). In Bernie Studio served by Bernie Link, File › Export › Ruida over the network… goes through it: first enter the pairing code in the Laser tab, then the controller’s IP address (local network only). Send and start, Frame, Test the connection and Stop the machine work as in the app; sending is confirmed by that button, on the sending device. bernie-hub --ruida-virtuel sends everything to a virtual Ruida machine, to try without a laser. Controller plugged into Bernie Link over USB (Gweike Cloud…): USB of Bernie Link link in the Ruida panel; Bernie Link finds the controller (FTDI chip) by itself — sending, framing, test and stop as over the network; live moves over the network only.

This manual is also built into Bernie: press F1, or open the Help menu, to read the topic for what you are doing. A mistake, a missing answer? Tell us

Try it in Bernie, for free.

Free laser engraving and cutting software for diode, CO2, fiber and galvo lasers. Windows, Mac, Linux, iPad, iPhone and in the browser.