473,511 Members | 16,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem accessing IR port - Ubuntu 8.10

6 New Member
Hi,

I'm currently trying to develop a IR Remote (TV consumer) listener in C under Linux.

First of all I tried with an old notebook with an integrated IR peripheral (FIR)under Debian (kernel 2.6). All seems to work fine, I can also access directly with
#cat /dev/ttyS1
And my listener (written in C) work pretty fine.

Problems came up with a newer notebook with Ubuntu 8.10.
I set FIR in Bios like the older notebook. But trying to access with cat /dev/ttyS1 raise this error: read: Input/output error
I took immediatly that something lock this device but, how can I see which process lock this resource?

Running my program (a simple non canonical read from the /dev/ttyS1) give me NO data... Seems to be that nothing is coming through the IR port (despite I was trying clicking about an hundred buttons on 3 differents remote controllers :) ).
I tried to unload all modules of irda and I disable UART setting with setserial, but nothing change.

I'm pretty sure that problem came because of "something" who lock this device, but I have no idea how to patch it.

Any suggestions?

Thanks a lot

Sergio
Nov 10 '08 #1
2 3522
Nepomuk
3,112 Recognized Expert Specialist
First thing I'd check is: Is /dev/ttyS1 really the correct device? Maybe this Laptop is wired slightly different than the Debian machine. I just checked on my machine (currently Xubuntu 8.04, going to install 8.10 soon) and I have ttyS0 - ttyS3. I don't know which of them is my IR device, but one of them will be. (I'm sure you can check that somehow, but don't know how to right now.)

Greetings,
Nepomuk
Nov 10 '08 #2
wizche
6 New Member
Hi nepomoku!
Thanks for reply...

I'm sure that /dev/ttyS1 is the correct device...
I checked the address and IRQ in the BIOS and is the exactly the same of the result from setserial /dev/ttyS1 and from dmesg ¦ grep tty

You've tried to make a simple cat to your ir device? It works?
Nov 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2105
by: bernatik | last post by:
hi all I am trying to control special device through serial port from Linux. For that purpose I need to control DTR signal. I am watching the signal on a oscilloscope, so I know exactly what is...
1
3932
by: Eirik Brattbakk | last post by:
Hi I have some problems accessing a soap service made in c# using an ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and CSoapWininetClient as template arguments with my stub...
3
1668
by: Han | last post by:
Hi In debug mode, my asp.net page works under port: 13064 which is automatically set by the program. However when I browse to my asp.net page without the port number, error. How can I set the...
3
2482
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating...
8
7269
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and...
60
4007
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
On May 3, 8:09 am, apati...@gmail.com wrote: A programmer that uses Vista? :O Vista is a hog of an operating system. Downgrade to Windows XP or get yourself a Linux distro.
4
4449
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
2
5182
by: dcblair | last post by:
Hi guys and girls. I can't seem to figure this one out. Here is my setup: Speedtouch 536 DSL Modem, Nexxt 4 Port Wireless Router, CNET CIC 920W Wireless IP Camera. The camera is set up in...
2
2218
Parul Bagadia
by: Parul Bagadia | last post by:
hello ppl, my net is working in windows but i want it to run in ubuntu; in ubuntu i have configured VPN settings.. and its showing network as connected; m also getting reply on pinging; but its still...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.