From: Dmitry Derjavin <dd@altlinux.org> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: [Comm] Обмен данными с Arduino: настройка последовательного порта Date: Wed, 19 Feb 2014 10:53:21 +0400 Message-ID: <87ha7vtwym.fsf@asia.home.dd> (raw) Коллеги, добрый день! Хочется организовать обмен данными с устройством на базе Arduino (RepRap). После подключения в системе происходит следующее: # lsusb | grep Arduino Bus 010 Device 016: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM) # ls -l /dev/ttyACM0 crw-rw---- 1 root uucp 166, 0 Feb 19 00:38 /dev/ttyACM0 Пользователь, с правами которого запускается приложение для взаимодействия с принтером, в группу uucp входит. При этом обмен данными не получается: команды уходят на принтер, но его ответы не воспринимаются управляющим приложением. Есть подозрение, что приложение не может установить правильные параметры порта. В частности, скорость 256000. Попытка установить скорость вручную к ожидаемому результату не приводит: # setserial /dev/ttyACM0 baud_base 256000 # setserial -aG /dev/ttyACM0 /dev/ttyACM0 uart unknown port 0x0000 irq 0 baud_base 9600 spd_normal low_latency Подскажите, пожалуйста, судя по выводу setserial — всё ли в порядке с портом, требует ли он какой-то дополнительной настройки, если да, то какой? Подозрительно выглядят «port 0x0000 irq 0». Заранее спасибо! -- ~dd
next reply other threads:[~2014-02-19 6:53 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-02-19 6:53 Dmitry Derjavin [this message] 2014-02-19 13:29 ` Sergey Vlasov 2014-02-21 19:30 ` Dmitry Derjavin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87ha7vtwym.fsf@asia.home.dd \ --to=dd@altlinux.org \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git