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.

Last Post!

alexslade

alexslade

So I spent a while debugging dmesg and getting absolutely nothing, before realising… I’m on a RPI Zero, and I remembered has some funny OTG stuff on the usb port.

I reclaimed a rpi4 from my homelab and tried on there, and I now have the device being enumerated. :man_facepalming:

Thanks for helping and pointing me in the right direction.

Where Next?

Popular in Questions Top

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
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
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement