You are not logged in.

#1 2015-11-17 23:40:36

rgkaizen
Member
Registered: 2015-09-25
Posts: 8

Finding usb devices like Arduino

Hi everyone,

I'm working with a Spark Photon which is very Arduino-like, if not the same underlying chip (I'm not sure). [ https://www.particle.io/ ]

The photon supports serial communication, just like the Arduino. However, I can't find the endpoint on my system to talk to it.
When I use Particle's CLI tool to look for serial devices (particle serial), it fails to find the connected photon.
I've tried searching for it using lsusb and dmesg, but neither show an obvious entry for the photon (I also can't find the  device and vendor ids for it, which would help the search).

What is the proper way to find usb-based serial communication devices in ArchLinux?

Offline

#2 2015-11-17 23:49:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,996

Re: Finding usb devices like Arduino

Well first, look at the output of lsusb and see if it shows up there.
The specific answer to your question is /dev/ttyUSBn ; where n is an integer, starting with 0 for the first device and incrementing for subsequent devices.

Last edited by ewaller (2015-11-17 23:49:39)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-11-18 00:23:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,801
Website

Re: Finding usb devices like Arduino

I'm much more empirical with such things:

$ ls /dev
# look at list.  plug in the device
$ ls /dev
# look at list again.
# Or for those horribly bad at spotting differences:
$ ls /dev > list
# plug in the device
$ diff <(ls /dev) list

If there is no difference, the kernel doesn't recognize the device - you may need a driver (or to reboot if you haven't since your last kernel update).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB