Magani: avrdude: ser_open (): ba zai iya buɗe na'urar akan Arduino ba

A cikin wannan labarin zan bayyana yadda za a warware kuskuren gama gari a cikin Arduino:

avrdude: ser_open (): ba zai iya buɗe na'urar ba "/ dev / ttyACM0": An hana izinin

Bayani

Bayan dogon lokaci ba tare da amfani da Arduino ba na ɗauki abubuwan da nake sakawa biyu (na asali da na Elegoo) don yin wasu ayyuka tare da ɗiyata. Ina haɗa su, zan sanya ƙyaftawa don ganin komai yana da kyau kuma lokacin da na je aikawa zuwa allon sai ya dawo da sanannen kuskuren.

Arduino: 1.8.5 (Linux), Katin: "Arduino / Genuino Uno" avrdude: ser_open (): ba zai iya buɗe na'urar ba "/ dev / ttyACM0": An hana izinin shigar da Matsala ga kwamitin. Ziyarci http://www.arduino.cc/en/Guide/Troubleshooting#upload don shawarwari.

Dukansu akan PC dina da kwamfutar tafi-da-gidanka na da Ubuntu 18.04.

Magani

Na fara da bin mahada cewa kuna ba ni shawara. Kuma ina bin matakai

En kayan aiki / farantin Arduino / Genuino Uno an zaɓi

Biyan kuɗi zuwa jerin aikawasiku

En kayan aiki / tashar jiragen ruwa / dev / ttyACM0

arduino avrdude matsalar matsala

kuma kamar yadda takaddar ta nuna, idan akwai matsaloli game da Direbobi da izini, Ina buɗe tashar kuma in aiwatar:

 sudo usermod -a -G tty yourUserName
 sudo usermod -a -G dialout yourUserName

inda yourMai amfani shine sunan mai amfani naka

Yanzu na fita na sake shiga. Kuma kawai idan na sake farawa PC / kwamfutar tafi-da-gidanka.

Har yanzu bai yi aiki a gare ni ba kuma takaddun Arduino ba su taimaka ba kuma. Don haka na ci gaba da nema, a cikin majallu da kuma shafukan yanar gizo. Idan a wannan lokacin bai muku aiki ba kuma kun zama kamar ni. Bi matakai na gaba

ls / dev / ttyACM0 dawowa / dev / ttyACM0
ls -l / dev / ttyACM0 ya dawo crw-rw-- 1 tushen tattaunawa 166, 0 Nuwamba 26 16:41 / dev / ttyACM

Da wannan ne muke tabbatar da cewa tashar tana nan

Za mu ba da izini kuma mu bincika idan mai amfani da mu yana da izinin da ya dace.

 sudo chmod a+rw /dev/ttyACM0
 id devuelve 20(dialout) 

Kuma na ga cewa mai amfani yana cikin ƙungiyar magana don haka wannan bangare mun samu daidai.

Abin da ya yi aiki a gare ni ya kasance don sake shigar da Arduino.

Idan ka duba

which avrdude

Kuma baya dawo da komai sakewa Arduino ya warware.

sudo apt install --reinstall arduino

Kuma idan baku iya shawo kan matsalar ba, ku bar min bayani kuma zanyi kokarin taimaka muku.

AVRDUDE Shirya Matsala

Akwai rubutun da suka shirya don gyara wannan matsalar. Kuna iya gwadawa don ganin ko ya taimaka muku. Ban yi amfani da shi ba amma zan bar shi saboda ina ganin zai iya zama fa'ida mai amfani.

KYAUTA

Na bar wani ɗan bayani don in fahimci abin da AVRDUDE yake. Sunan ya fito ne daga AVRDUDE - AVR Downloader / UploaDEr

AVRDUDE kayan aiki ne don saukarwa / lodawa / sarrafa ROM da abubuwan EEPROM na AVR microcontrollers ta hanyar amfani da dabarun shirye-shirye (ISP).

https://www.nongnu.org/avrdude/

AVRDUDE Brian S. Dean ne ya fara shi azaman aikin zaman kansa a matsayin mai shirye-shirye na Atmel AVR jerin microcontrollers.

Kuna iya samun software da ƙarin bayani a cikin aikin yanar gizo.

1 sharhi akan "Magani: avrdude: ser_open (): ba zai iya buɗe na'urar akan Arduino ba"

  1. Ina da matsala tare da arduino daya ba ya sadarwa tare da manufa ko akasin haka Ina da komai da komai yadda ya kamata, duk tashar jirgin ruwa da sauransu ... Na zazzage flip amma ban san yadda yake aiki ba don loda kayan aikin da nake tsammanin shine abin da ya kasa za ku iya samun ɗan cikakken bayani yadda za a sake shigar da arduino godiya ni sabo ne ga wannan

    amsar

Deja un comentario