ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Обмен данными с Arduino: настройка последовательного порта
@ 2014-02-19  6:53 Dmitry Derjavin
  2014-02-19 13:29 ` Sergey Vlasov
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Derjavin @ 2014-02-19  6:53 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Коллеги, добрый день!

Хочется организовать обмен данными с устройством на базе 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-21 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19  6:53 [Comm] Обмен данными с Arduino: настройка последовательного порта Dmitry Derjavin
2014-02-19 13:29 ` Sergey Vlasov
2014-02-21 19:30   ` Dmitry Derjavin

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