ninja írta:
ez erdekelne engem ha tudsz segiteni
itt válaszolnék a leveledre:
"xp hasznalok
1 kerdesem lenne
hogyan tudok soros portra irni olyan progit ami pl egy led vilagitasat ki es be kapcsolja "
Én WinApi hívásokkal kezelem a soros portot, úgy, mint file kezelése, setcommtimeouts, setcommstate, stb. Ez az msdn(2).microsoft.com-on olvasható. Tehát ez nem programnyelv függő, bár lehetnek olyan komponensek, amik készen tudják a te általad kérteket.
Érzésem szerint a DCB.flags-al állíthatod, azaz
fDtrControl
Specifies the data-terminal-ready (DTR) flow control. The following table shows possible values.
Value Description
DTR_CONTROL_DISABLE
Disables the DTR line when the device is opened and leaves it disabled.
DTR_CONTROL_ENABLE
Enables the DTR line when the device is opened and leaves it on.
...
illetve:
fRtsControl
Specifies the request-to-send (RTS) flow control. If this value is set to zero, the default is RTS_CONTROL_HANDSHAKE. The following table shows possible values.
Value Description
RTS_CONTROL_DISABLE
Disables the RTS line when the device is opened and leaves it disabled.
RTS_CONTROL_ENABLE
Enables the RTS line when the device is opened and leaves it on.
...
*****************************************
"amit irt az egyik srac a forumon fogy hexa szamokat szeretne kuldeni sorosportra ez erdekelne engem is "
Ezt a file írással megteheted. Ne feledd a file megnyitáskor a no_buffering opciót, vagy írás után használni a flushfilebuffer-t!
*****************************************
"pl mobil telefonbol szeretnek kiolvasni egy bizonyos hex cimen levö biteket ebben studnal e segiteni"
Ez erősen nem soros programozási téma, így ebben nem tudok segíteni.