-
connect to nothing?
Hi.
I am trying to connect to a device using IR on my computer/phone.
problem is that on the recieving end, there is no computer/IP Address and so on. its just a dumb IR which recieves data.
I cannot seem to connect to it as i get this error:
The system detected an invalid pointer address in attempting to use a pointer argument in a call
this is the code:
Code:
Socket theSock = new Socket(AddressFamily.Irda, SocketType.Stream, ProtocolType.Unspecified);
theSock.Connect(new IPEndPoint(IPAddress.None, 0));
any ideas on how to Connect to such a device? (this device could be a TV/VCR)
in the end, i just want to send signal to it
-
Re: connect to nothing?
As far as I know IR communications between laptops and palmtops etc work using Windows networking : i.e. the IR device will appear as a machine in the "network neighbourhood".
For talking to a TV you'll have to get a lot more low level : there's no standard protocol to say "turn on" or "go to channel 5" - even between manufacturers which is why you get those programmable remote controls. I'm not sure it's even possible with the standard IR which comes on PCs.
Darwen.
-
Re: connect to nothing?
i understand.
I have the codes required to send out signals to a tv/vcr BUT need to connect to nothing... if that makes sense? So i can fire out these codes :)
-
Re: connect to nothing?
eh! coming back to OBEX... take a look at those standards... I think that does for BT and IR... not really sure though...
-
Re: connect to nothing?
?
:)
IR differs in communication than BT. drats i am sooooo close for it to send signals but its just the connection problem. I think i will have to go low level (C/C++) to do this but i dont want to since i know nothing about C++ and prefer it to be done in .NET ... even if i can import standard system files and use its API's....