* [Comm] программирование LPT
@ 2005-01-14 11:37 Sergey
0 siblings, 0 replies; only message in thread
From: Sergey @ 2005-01-14 11:37 UTC (permalink / raw)
To: community
Hello community,
Есть мат. плата ASUS P4S533-MX на чипсете SiS 651. Спаял простенький
деглюкер с управлением по LPT для дергания по питанию повисшего
модема, написал скрипт на перле. На других мат. платах вроде все
работает, но на моей отказывается напрочь. Тоесть не хочет менять
напряжение на выводах LPT-порта, постоянно держит 4,5 В в независимости
от того, что я пишу в порт. Задействованы 2-й контакт и 20-й.
Может я что-то в скрипте на портачил или это глюк/фича платы?
Отрывок из скрипта, здесь все строки которые касаются работы с LPT:
use Device::ParallelPort;
my $pp = Device::ParallelPort->new('auto:0');
#power off
$pp->set_byte(0, chr(255));
sleep(5);
#power on
$pp->set_byte(0, chr(0));
--
Best regards,
Sergey mailto:gray_post@mail.ru
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-14 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 11:37 [Comm] программирование LPT Sergey
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