為何剛開始無法控制 printer port 的狀態 ? |
答題得分者是:DavidLo
|
Just4U
初階會員 發表:38 回覆:56 積分:28 註冊:2002-03-27 發送簡訊給我 |
|
㊣
版主 發表:261 回覆:2302 積分:1667 註冊:2005-01-04 發送簡訊給我 |
你所謂的pin 0 應該是print port的pin 1吧?
37AH=01H => 通知印表機有資料要輸出, 此時閃控訊號線(也就是Pin 1)會輸出一個低電壓脈衝告知印表機有資料要輸出. 因此你會看到它變成Lo, 一下子又變成Hi. 這是正常現象.
------
------------------------------------------------------------------------- 走是為了到另一境界,停是為了欣賞人生;未走過千山萬水,怎知生命的虛實與輕重!? |
DavidLo
高階會員 發表:17 回覆:225 積分:168 註冊:2004-07-21 發送簡訊給我 |
|
Just4U
初階會員 發表:38 回覆:56 積分:28 註冊:2002-03-27 發送簡訊給我 |
|
DavidLo
高階會員 發表:17 回覆:225 積分:168 註冊:2004-07-21 發送簡訊給我 |
Dear Sir!
This is found on the internet!
Q: If a logic 1 is written to the Control Port, bit 0, (Strobe), the PC clears all of the port bits once every five seconds for about a minute. A: Some versions of Windows XP look for devices by periodically writing to the port. A registry key can disable this behavior. The following registry setting disables the port writes: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000001 The following registry setting enables the port writes: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000000 You can make these changes in Windows' regedit utility. Or to make the changes automatically, create and save the following text files: DisableWarmBoot.reg contains the following text: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000001 EnableWarmBoot.reg contains the following text: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000000 To change a registry key, run the program. As always, use caution when working with the registry, which contains critical values for configuring and running the PC. After making a change, reboot the PC. Disabling the port writes can also eliminate port timeout errors received in some applications.我的作業系統不是WinXP,無法測試! |
㊣
版主 發表:261 回覆:2302 積分:1667 註冊:2005-01-04 發送簡訊給我 |
|
Just4U
初階會員 發表:38 回覆:56 積分:28 註冊:2002-03-27 發送簡訊給我 |
引言: Q: If a logic 1 is written to the Control Port, bit 0, (Strobe), the PC clears all of the port bits once every five seconds for about a minute. The following registry setting disables the port writes: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000001 The following registry setting enables the port writes: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters] "DisableWarmPoll"=dword:000000001 min / 5 sec = 12, 和我的情況似乎相同 我執行 regedit 在底下2個環境, Windows 2000/Registry Editor Version 5.0 Windows XP/Registry Editor Version 5.1 但KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport2者都找不到 Parameters 這個參數 請問是我會錯意了嗎? 請再指教一下, 謝謝!!! |
DavidLo
高階會員 發表:17 回覆:225 積分:168 註冊:2004-07-21 發送簡訊給我 |
|
㊣
版主 發表:261 回覆:2302 積分:1667 註冊:2005-01-04 發送簡訊給我 |
|
Just4U
初階會員 發表:38 回覆:56 積分:28 註冊:2002-03-27 發送簡訊給我 |
|
DavidLo
高階會員 發表:17 回覆:225 積分:168 註冊:2004-07-21 發送簡訊給我 |
|
Just4U
初階會員 發表:38 回覆:56 積分:28 註冊:2002-03-27 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |