Coder Social home page Coder Social logo

Comments (8)

reillyeon avatar reillyeon commented on May 14, 2024 3

There's a missing step in the setup instructions. On Linux you need to add a file containing the following line to /etc/udev/rules.d to tell the OS to set permissions on the device so that Chrome can open it,

SUBSYSTEMS=="usb", ATTR{idVendor}=="your VID here", ATTR{idProduct}=="your PID here", MODE:="0666"

I'm going to re-purpose this bug for documenting this in README.md.

from arduino.

islemaster avatar islemaster commented on May 14, 2024

Interesting... I already had the following in /etc/udev/rules.d/99-adafruit-boards.rules, although it looks malformed compared to the rule you posted:

# Rule to make Trinket/Pro Trinket/Gemma/Flora programmable without running Arduino as root.
# Tested with Ubuntu 14.04 and 12.04.  Other distributions might need to update GROUP="dialout"
# to another group value like "users".
SUBSYSTEM=="usb", ATTR{idProduct}=="0c9f", ATTRS{idVendor}=="1781", MODE="0660", GROUP="dialout"

# Rule to blacklist Adafruit USB CDC boards from being manipulated by ModemManager.
# Fixes issue with hanging references to /dev/ttyACM* devices on Ubuntu 15.04.
ATTRS{idVendor}=="239a", ENV{ID_MM_DEVICE_IGNORE}="1"

Adding the rule you provided with correct Circuit Playground VID/PIDs swapped in...

SUBSYSTEMS=="usb", ATTR{idVendor}=="239a", ATTR{idProduct}=="8011", MODE:="0666"

...definitely gets me further than before. I still don't get a notification from Chrome on plug, but the RGB demo now gets as far as "Connected" and seems to think it's setting LED colors when I move the sliders. Unfortunately nothing seems to actually happen on the board. I'll keep experimenting and post here if I can work out how to control the LEDs.

from arduino.

reillyeon avatar reillyeon commented on May 14, 2024

If you look in chrome://device-log when you plug in your device there should be a log message explaining why it failed to read the landing page URL.

from arduino.

justinmoon avatar justinmoon commented on May 14, 2024

SUBSYSTEMS=="usb", ATTR{idVendor}=="your VID here", ATTR{idProduct}=="your PID here", MODE:="0666"

I'm having the same problem and adding this line doesn't have any effect.

The output of udevadm info -a -n /dev/ttyACM0 includes

  looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/tty/ttyACM0':
    KERNEL=="ttyACM0"
    SUBSYSTEM=="tty"
    DRIVER==""
...

It seems that my Arduino isn't a member of the "usb subsystem"?

Here's what the failures look like from the device-log:

device-log

I'm using a Feather M0. I did add the relevant { 'vendorId': 0x239a, 'productId': 0x800b } line to the filters array in serial.js. I also made the #define USB_VERSION 0x210 modification to USBCore.h

Your help would be greatly appreciated.

from arduino.

justinmoon avatar justinmoon commented on May 14, 2024

I was able to get it to run by following these instructions: https://learn.adafruit.com/adafruit-arduino-ide-setup/linux-setup

from arduino.

xylo04 avatar xylo04 commented on May 14, 2024

I had a very smooth experience today using only README.md to get running with Linux, Chrome 83 and an Adafruit M0, with the exception of having to make a udev rule. What surprises me is that Arduino IDE is able to program and use the serial console just fine without the udev rule, but Chrome was just giving me the cryptic "SecurityError: Access denied" message.

I added /etc/udev/rules.d/51-adafruit.rules:

SUBSYSTEM=="usb", ATTR{idVendor}=="239a", GROUP="plugdev"

My OS user was already part of the plugdev group.

from arduino.

gauntface avatar gauntface commented on May 14, 2024

Are you open to taking Pull Requests to add this to the README?

from arduino.

reillyeon avatar reillyeon commented on May 14, 2024

Yes.

from arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.