ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey <gray_post@mail.ru>
To: community@altlinux.ru
Subject: [Comm] программирование LPT
Date: Fri, 14 Jan 2005 13:37:53 +0200
Message-ID: <1001169452.20050114133753@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



                 reply	other threads:[~2005-01-14 11:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1001169452.20050114133753@mail.ru \
    --to=gray_post@mail.ru \
    --cc=community@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 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