Page 1 of 1 1
Topic Options
#130501 - 2004-12-02 07:10 PM Port Com1 Configuration
@lejo @rias Offline
Starting to like KiXtart

Registered: 2003-09-02
Posts: 100
Loc: Medellin, Colombia
Hi, exist some way to configure the local ports (Com1, com2) with kix?
I need change from:

Bits per Second: 9600
Data bits: 8
Parity: none
Stop bit: 1
Flow control: ninguno

TO:

Bits per Second: 9600
Data bits: 1
Parity: Odd
Stop bit: 1
Flow control: Hardware

tks 4r ur hlp.
_________________________
Look always 4 the best...

Top
#130502 - 2004-12-02 07:40 PM Re: Port Com1 Configuration
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, not directly with KiX, but with the DOS MODE command or with WMI code called via KiX you should be able to.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#130503 - 2004-12-02 07:44 PM Re: Port Com1 Configuration
@lejo @rias Offline
Starting to like KiXtart

Registered: 2003-09-02
Posts: 100
Loc: Medellin, Colombia
I try with mode comx:y,y,y but not apply for all time, only for a session. (WinXP)

With WMI use this code: (vbs)
Code:
  
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_SerialPortConfiguration")
For Each objItem in colItems

Wscript.Echo "Abort Read Write On Error: " & objItem.AbortReadWriteOnError
Wscript.Echo "Baud Rate: " & objItem.BaudRate
Wscript.Echo "Binary Mode Enabled: " & objItem.BinaryModeEnabled
Wscript.Echo "Bits Per Byte: " & objItem.BitsPerByte
Wscript.Echo "Continue XMit On XOff: " & objItem.ContinueXMitOnXOff
Wscript.Echo "CTS Outflow Control: " & objItem.CTSOutflowControl
Wscript.Echo "Discard NULL Bytes: " & objItem.DiscardNULLBytes
Wscript.Echo "DSR Outflow Control: " & objItem.DSROutflowControl
Wscript.Echo "DSR Sensitivity: " & objItem.DSRSensitivity
Wscript.Echo "DTR Flow Control Type: " & objItem.DTRFlowControlType
Wscript.Echo "EOF Character: " & objItem.EOFCharacter
Wscript.Echo "Error Replace Character: " & objItem.ErrorReplaceCharacter
Wscript.Echo "Error Replacement Enabled: " & objItem.ErrorReplacementEnabled
Wscript.Echo "Event Character: " & objItem.EventCharacter
Wscript.Echo "Is Busy: " & objItem.IsBusy
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Parity: " & objItem.Parity
Wscript.Echo "Parity Check Enabled: " & objItem.ParityCheckEnabled
Wscript.Echo "RTS Flow Control Type: " & objItem.RTSFlowControlType
Wscript.Echo "Setting ID: " & objItem.SettingID
Wscript.Echo "Stop Bits: " & objItem.StopBits
Wscript.Echo "XOff Character: " & objItem.XOffCharacter
Wscript.Echo "XOff XMit Threshold: " & objItem.XOffXMitThreshold
Wscript.Echo "XOn Character: " & objItem.XOnCharacter
Wscript.Echo "XOn XMit Threshold: " & objItem.XOnXMitThreshold
Wscript.Echo "XOn XOff InFlow Control: " & objItem.XOnXOffInFlowControl
Wscript.Echo "XOn XOff OutFlow Control: " & objItem.XOnXOffOutFlowControl

Next




but not allow change parameters.
_________________________
Look always 4 the best...

Top
#130504 - 2004-12-02 08:18 PM Re: Port Com1 Configuration
@lejo @rias Offline
Starting to like KiXtart

Registered: 2003-09-02
Posts: 100
Loc: Medellin, Colombia
Hi, I found the solution:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports]

"COM1:"="9600,o,7,1,p"

tks 4r ur time...
_________________________
Look always 4 the best...

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1077 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.054 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org