I have a remote control RM200 and I want to program it
so I can detect key presses and send them to applications.
Now, which API can I use in Windows?
HID usb API? IRDA API?
I'm confused.
My remote is an IRDA remote but sometime I read that I can program this device
with HID USB API????
AFAIK you cannot use the IRDA interface to receive infrared remote control sinals, because IRDA is a special protocol and the interface cannot be "abused" to receive other signals.
To receive your remote control's infrared signals you will need an extra device. Infrared receivers for your serial port are quite easy to build.
A good source for information and software is: http://www.lirc.org/
The windows port of lirc is called WinLIRC an can be found here: http://winlirc.sourceforge.net/overview.html
Related
I need to perform two task in c#
1) with USB cable
2) with Bluetooth
i want to dial and receive calls from smart android mobile. Mobile can be connected with USB cable or Bluetooth. I can dial and receive calls using USB cable by AT commands. Android mobile is connected as USB GSM Modem (Virtual com port). AT+CLIP=1 give a number information along with RING when someone is calling. So i can attend call by viewing a specific number. This part is working Well.
The second part is same thing with Bluetooth. I used 32feet.net for dialing a call. I am able to make a call after going through these forums links
Bluetooth dial with 32feet.net and c#
Bluetooth communication from PC to mobile phone, use laptop speaker and mic during voice call
Get Data from Bluetooth device in C#
now i am not able to get any information when anyone is calling on Bluetooth
i am using hand free profile as using serial port i get an error may be my mobile not support Bluetooth virtual com port.
can anyone point out me how i can get information that which one is calling or invoke some function when anyone call. I need to get a number which one is calling that help me in decision to accepting or rejecting a call.
Bluetooth: use HandsFree Profile. It runs RFCOMM control channel that allows your application to place a call, handle incomming calls, 3-way calling and other things using AT commands (HFP is well documented so you can find all the commands in its specification). However Windows standard Bluetooth driver from Microsoft does not support connection to HFP Audio Fateway. You can do it with BlueSoleil only.
USB: There is no USB HFP profile. Android supports only DUN through USB so it can act as USB GSM Modem only and supports only modem commands. No voice and no other commands.
I am writing a desktop application that will have to communicate with a windows mobile application in the compact framework 3.5. The communication must occur over the internet between these two applications to send data between them on command if the connection is available.
The system will send messages and objects like Images between device and desktop application and check to see if the desktop can see the device by sending a command and have a timeout on response. (Application will then know that the device is not available).
The mobile device will send a message to the desktop application when online as well that the desktop knows that the mobile is connected(Type of registering for communication)
Can someone please inform me of the best way to follow to accomplish this.
I did some research and found this site is near to something like event based driven communication I would want but do not have the availability of setting up an email on each device.
Battery life and internet open on device is not an issue.
Should I check in on working with the System.Net.Socket class for this type of communication between the two application and if so how will I set up so firewalls will not interfere and have my desktop application be seen over the internet by the mobile application ?
Hope someone can spread some light over this for me, if you have a answer please provide a link so I can read up on it.
your description is something basic. OK, regardless of what TCP/IP communication you decide for (HTTP, sockets) you must always have your internet router forward packages on a specified incoming port to your PC and the firwall must accept these incoming requests.
So, the device will have to send data to the PC and vice versa. So you need a server and a client on the PC and on the PC.
Possibly you can use an already available cloud like Dropbox to exchange files between PC and device.
What are about your skills in socket programming? The main server (PC) must be written multithread to be able to server multiple device client requests.
A simple socket comm is done in my SocketWedge [http://www.hjgode.de/wp/2010/05/27/transmit-data-from-winmo-device-to-pc-socketwedge-and-socketsend/]. A way of multithreaded communication using a web server on the device is available here [http://www.hjgode.de/wp/2012/10/19/windows-mobile-a-simple-web-server-with-extended-features/].
Will SQL with data synchronization be a possible choice?
Can you describe the application in more detail?
~josef
Ok, I have a VOIP Phone. I know the IP address and the port of the phone and have full access to the phone, which I am using to make SIP calls via a SIP trunk.
I basically want to see what is going on on the phone at any given time and I don't know where to start.
If I started, initially, using Wireshark what type of network traffic would I need to look for?
Could I use Putty and view activity on the phone that way?
What part of the .Net framework would provide functionality for interfacing with a VOIP phone?
Thanks
(Most) VOIP phones uses UDP communication, so you would use the UDP functionality in .NET. This can be raw sockets or the UdpClient class, which is a nice starting point.
You can look in Wireshark for UDP communication that has the phone IP as endpoint. You should try to get the network protocol documentation for your specific protocol/phone, or it is likely to take you a very long time to deduce the messages you need to send.
Wireshark has a built-in SIP processor
According to http://www.splicecom.com/document-area/doc_download/272-maximiser-protocol-a-port-information-for-ip-networks they have several protocols providing different information which you can access to achieve what you describe.
Another option is to use the the TAPI provider they offer to access the information you want.
Some starting points for TAPI via .NET:
http://www.codeproject.com/KB/IP/devangpro.aspx
http://www.codeproject.com/KB/dotnet/CShart_TAPI_3x.aspx
http://www.codeproject.com/KB/IP/Video_Voice_Conferencing.aspx
http://msdn.microsoft.com/en-us/library/ms734214.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms734257%28v=vs.85%29.aspx
Another option is to build a SIP proxy which allows you to do all sorts of things including the things you described:
http://www.codeproject.com/KB/cs/SIP_stack_with_SIP_proxy.aspx
http://sipsorcery.codeplex.com/
http://www.independentsoft.de/sip/index.html
http://www.konnetic.com/products/products_sip_sdk_std.aspx
http://www.voiceelements.com/Products/VEToolkit.aspx
I have an embedded system running a web server that will usually be connected to an Ethernet network so users can simply enter the IP address of the device to access it.
However, I also need to make some of the same website functionality avaiable to users of the serial port on the device. It would be nice if I could reuse some of the logic I've developed for the web forms for this.
I am currently using .NET for development on my desktop and my embedded device is Linux based. Is it possible to host website content via a serial port or is there some other means by which I can pull this off?
Just a wild guess: back in the days when you connected by modem to the internet, there was a SLIP protocol: IP over Serial Line. Could you use that to establish an "internet connection" to your device?
There are a few options:
If the server is to be in windows, and you have windows 7 then windows xp mode (1) (2) will allow you to use SLIP so that you can provision over serial as you would to any IP address by mapping the serial port to an IP address.
Alternatively there is a sourceforge project called Contiki which has source code to allow the same if you fancy coding your own (the class is called uIp TCP/IP Stack).
Let me know if this is roughly what you're looking for and I can focus in on your specific requirements if you like:)
Cheers.
The first thing that comes to mind is some sort of LYNX like browser (I don't even know if it exists anymore). Maybe easier would be to just do a simple command line interface? It's linux, so you should just be able to spin up a telnet session pretty easily, right?
I believe you should be able to configure your Linux distribution to point your serial port at a terminal, and have that terminal log in with lynx as the shell.
You might want to follow directions for a Linux serial console (tutorial here) and potentially create a user account with the shell set directly to run lynx. Instruct the login prompt (/etc/issue in the tutorial) with the username and password.
Edit: If you're just looking for some sort of data entry from the console, you could just write a shell script or other program and point that user's shell to that application instead.
You could build a TCP client application on your linux device that will talk to your linux web server and redirect data to serial port, and build a TCP server application for your users that will talk to their serial port and redirect data to some TCP port (like 12345). Then all your users need to do is to set their browser to http://localhost:12345 and connect their PC to linux device via serial port cross over cable.
My school gave us MacBook Pros when we were accepted. I bought an IR remote for it later and I have the IR receiver (built in) working normally on itunes and other apps that accept input from it. I want to receive input from the remote in my own programs and I have no idea how to do that.
I've looked and a lot of examples talk about using the System.Net.Ports.SerielPort class but when I look under device manager it says that the IR receiver is connected via USB and I don't believe the SerielPort can access a USB device (although I know very little about the class).
What APIs are available that would help me receive input from the IR Receiver that's appearantly plugged into USB?
If it is an HID device (you should be able to confirm in the device manager)then you can look at this project for an example of how I used Windows API to access another USB HID device. You'll still need information on the IR receiver itself to know how it's commands work.