SerialPorts.jl doesn’t work with Julia version 1+. I need to control a laser device through a serial port. Any suggestions?


Have you tried ?


Alternatively, if you are willing to use Julia, 0.6, SerialPorts.jl works.


I’ve not used it myself, but it looks like SerialPorts.jl version v0.2.0 supports 1.0 —

What trouble are you having with it?


+1 for I am using this on a variety of devices and had no issues so far. Advantage is that it does not require Python.


Sorry for the late reply. This is what I get on Julia 1.0.3:

(serial) pkg> st                                                                               
    Status `C:\Users\michele.zaffalon\private\serial\Project.toml`                             
  (empty environment)                                                                          
(serial) pkg> add SerialPorts                                                                  
  Updating registry at `C:\Users\michele.zaffalon\.julia\registries\General`                   
  Updating git-repo ``                           
 Resolving package versions...                                                                 
ERROR: Unsatisfiable requirements detected for package SerialPorts [5d0f9de7]:                 
 SerialPorts [5d0f9de7] log:                                                                   
 ├─possible versions are: [0.0.1-0.0.7, 0.1.0] or uninstalled                                  
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1-0.0.7, 0.1.0]                                                                                             
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left  
(serial) pkg> st                                                                               
    Status `C:\Users\michele.zaffalon\private\serial\Project.toml`                             
  (empty environment)                                                                          


I had that problem a while ago and opened an issue in SerialPorts.jl here. The trich is to explicitly download the master branch with:

]add SerialPorts#master

It worked for me and I already tried in Windows and Linux OS’s.