Yankho: avrdude: ser_open (): sangatsegule chida pa Arduino

Munkhaniyi ndikufotokozera momwe tingathetsere cholakwika chodziwika ku Arduino:

avrdude: ser_open (): sangatsegule chida "/ dev / ttyACM0": Chilolezo chakanidwa

Chiyambi

Patapita nthawi yayitali osagwiritsa ntchito Arduino ndatenga matabwa anga awiri (choyambirira ndi Elegoo) kuchita zina ndi mwana wanga wamkazi. Ndimawalumikiza, ndikulowetsa kuphethira kuti ndiwone kuti zonse zili bwino ndipo ndikapita kukazitumiza kubungwe zimabweza cholakwika chodziwika bwino.

Arduino: 1.8.5 (Linux), Khadi: "Arduino / Genuino Uno" avrdude: ser_open (): sangatsegule chida "/ dev / ttyACM0": Chilolezo chakana Vuto kukweza pa bolodi. Pitani ku http://www.arduino.cc/en/Guide/Troubleshooting#upload kuti mupeze malingaliro.

Zonse pa PC yanga ndi laputopu yanga ndili ndi Ubuntu 18.04.

Solution

Ndiyamba ndikutsatira Lumikizani zomwe mumandiuza. Ndipo ndimatsatira

En zida / mbale Arduino / Genuino Uno amasankhidwa

Tumizani ku mndandanda wathu wamakalata

En zida / doko lotsatira / dev / ttyACM0

arduino avrdude ide vuto

ndipo monga momwe zolembedwazo zikusonyezera, ngati pali zovuta ndi Oyendetsa ndi zilolezo, ndimatsegula malowa ndikukhazikitsa:

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

kumene yourUserName ndi dzina lanu

Tsopano ndimatuluka ndikulowanso. Ndipo ngati ndingayambitsenso PC / laputopu.

Sizigwiranso ntchito kwa ine ndipo zolemba za Arduino sizimathandizanso. Chifukwa chake ndimangoyang'ana, m'mabwalo ndi mabulogu. Ngati pano sizikugwira ntchito kwa inu ndipo muli ngati ine. Tsatirani njira zotsatirazi

ls / dev / ttyACM0 kubwerera / dev / ttyACM0
ls -l / dev / ttyACM0 imabweza crw-rw—- 1 mizu yolumikizana 166, 0 Nov 26 16:41 / dev / ttyACM

Ndi izi timatsimikizira kuti doko lilipo

Tipereka zilolezo ndikuwunika ngati wogwiritsa ntchito wathu ali ndi zilolezo zofunikira.

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

Ndipo ndikuwona kuti wogwiritsa ntchito ali mgululi kuyimba kotero gawo ili talimvetsetsa.

Zomwe zandigwira ntchito ndikubwezeretsanso Arduino.

Ngati mungayang'ane

which avrdude

Ndipo siyibweza chilichonse chokhazikitsanso Arduino chiyenera kukonzedwa.

sudo apt install --reinstall arduino

Ndipo ngati simunathe kuthetsa vutoli, ndisiyireni ndemanga ndipo ndiyesetsa kukuthandizani.

Chida Chothetsera Mavuto a AVRDUDE

Pali script akonzekera kukonza vutoli. Mutha kuyesa kuwona ngati zikuthandizani. Sindinagwiritsepo ntchito koma ndimaisiya chifukwa ndikuganiza kuti itha kukhala yothandiza.

Pewani

Ndimasiya zambiri kuti ndimvetse bwino za AVRDUDE. Dzinalo limachokera ku AVRDUDE - AVR Downloader / UploaDEr

AVRDUDE ndi chida chothandizira kutsitsa / kunyamula / kugwiritsa ntchito zomwe zili mu ROM ndi EEPROM zama microcontroller a AVR pogwiritsa ntchito pulogalamu ya mu-system programming (ISP).

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

AVRDUDE idayambitsidwa ndi Brian S. Dean ngati pulojekiti yabwinobwino monga pulogalamu ya Atmel AVR yama microcontroller.

Mutha kupeza pulogalamuyo ndi zina zambiri mu tsamba la projekiti.

Ndemanga 1 pa "Solution: avrdude: ser_open (): sangatsegule chida pa Arduino"

  1. Ndili ndi vuto ndi arduino lomwe sililumikizana ndi malingaliro kapena mosemphanitsa ndili ndi zonse zomwe ndakonza bwino, doko lonse la doko ndi zina ... ndatsitsa ndikulemba koma sindikudziwa momwe zimagwirira ntchito kutsitsanso firmware yomwe ndikuganiza kuti ndi Cholakwika, mutha kukhala ndi tsatanetsatane wowonjezera momwe mungabwezeretsere arduino zikomo sindine watsopano

    yankho

Kusiya ndemanga