473,396 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem accessing IR port - Ubuntu 8.10

6
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 3519
Nepomuk
3,112 Expert 2GB
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.