From: Sergey <gray_post@mail.ru>
To: hardware@altlinux.ru
Subject: [Hardware] программирование LPT
Date: Fri, 14 Jan 2005 15:50:43 +0200
Message-ID: <1373775944.20050114155043@mail.ru> (raw)
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
next reply other threads:[~2005-01-14 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-14 13:50 Sergey [this message]
2005-01-14 14:20 ` Nizamov Shavkat
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=1373775944.20050114155043@mail.ru \
--to=gray_post@mail.ru \
--cc=hardware@altlinux.ru \
/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 hardware support
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/hardware/0 hardware/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 hardware hardware/ http://lore.altlinux.org/hardware \
hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
public-inbox-index hardware
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.hardware
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git