alexslade

alexslade

Trouble connecting to USB pen plotter

I’m trying to create a basic lib (I’ll publish something for others) that lets me send GCode directly to a GRBL-based pen plotter.

The plotter is an iDraw H, it’s an arduino-based clone of an Axidraw. I have a similar arduino-based laser cutter that has been working fine with Circuits.UART, meaning that I plug the device into my rpi, and Circuits.UART.enumerate shows the interface.

With this new pen plotter, I can’t seem to connect. I’m pretty inexperienced with this kind of interface, so any advice is really appreciated.

My debugging information so far:

  • I can connect on my mac using “Universal Gcode sender”. In the logs I see the connection is called “cu.usbmodem201912341” and the protocol is “jserialcomm://cu.usbmodem201912341:115200”. This indicates UART @ 115200 baud.
  • I can’t see anything relevant at /dev. The full list from System.cmd("ls", ["/dev"]) is:
pmsg0
rfkill
mem
null
zero
full
random
urandom
kmsg
tty
console
tty0
vcs
vcsu
vcsa
vcs1
vcsu1
vcsa1
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty60
tty61
tty62
tty63
gpiochip0
fb0
ptmx
ttyprintk
hwrng
vc-mem
vcio
gpiomem
ram0
ram1
ram2
ram3
ram4
ram5
ram6
ram7
ram8
ram9
ram10
ram11
ram12
ram13
ram14
ram15
loop-control
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
vchiq
ttyAMA0
ttyS0
watchdog
watchdog0
spidev0.0
spidev0.1
i2c-1
mmcblk0
mmcblk0p1
mmcblk0p2
mmcblk0p3
pts
shm
rootdisk0
rootdisk0p3
rootdisk0p2
rootdisk0p1
log
vcsm-cma
video10
video11
video12
video18
video31
media0
video13
video14
video15
video16
media1
video20
video21
video22
video23
media2
snd

First Post!

jjcarstens

jjcarstens

Nerves Core Team

Not all devices are required to respond to the enumerate request, so Circuits.UART.enumerate may not return anything. If that is the case, I would run dmesg before and after connecting the device (assuming USB?) and noting the difference. It should should were it connects and what /dev you need to use.

Where Next?

Popular in Questions Top

Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement