-
September 24th, 2005, 05:08 PM
#1
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
-
September 25th, 2005, 07:59 AM
#2
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.
-
September 25th, 2005, 08:20 AM
#3
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
-
September 26th, 2005, 08:57 AM
#4
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...
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
September 26th, 2005, 08:19 PM
#5
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|