473,396 Members | 2,039 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.

Device Driver Problem: PPP->DeviceDriver->RFCOMM

Hi!

First of all, I'm using a the latest Version of a FUSD Module...for my device-driver.

I have the following situation:
I have a PPP connection over a serial (RFCOMM-)device. That works fine! But now i want to put a DeviceDriver-Module in front of the RFCOMM-Device, so that PPP uses my DeviceDriver-Module. The Module just forwards the data from PPP to the RFCOMM device - no data is changed (later the module shall filter some debug-information added to the ip-data coming from the RFCOMM-Device -> and hand the filtered data over to ppp, so that the connection works as always).
The Problem now is, that PPP needs a serial device that it can configure. I thought when i forward the ioctls to the RFCOMM device everything shall work? But it doesn't.

Computer 1 (PPP <-> DeviceDriver <-> RFCOMM) <-> processing on a uC <-> (RFCOMM <-> DeviceDriver <--> PPP) Computer 2

The DeviceDriver shall emulate the RFComm-Device to filter the traffic going through.

This is my ioctl-function...
Expand|Select|Wrap|Line Numbers
  1. int do_ioctl(struct fusd_file_info *file, int cmd, void *arg)
  2.  { 
  3. int iRetVal = 0; 
  4. iRetVal = ioctl(iCom_Device, cmd, arg); 
  5. return iRetVal; }
The iCom_Device is my RFCOMM-Device, opened as follows:
Expand|Select|Wrap|Line Numbers
  1. iCom_Device = open(argv[1],O_NONBLOCK | O_RDWR,0);
When I try to establish a ppp-connection, i get the error, that some operations for configuring the serial port fails:
Expand|Select|Wrap|Line Numbers
  1. Aug  7 10:50:56 xxx pppd[6032]: tcgetattr: Operation not permitted (line 933)
The DeviceDriver is just opened and closed, or the ioctl is used (no read or write).

Does anybody have an idea?

thanks a lot!!

regards,
dd
Aug 7 '07 #1
0 1773

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

Similar topics

2
by: nbhalala | last post by:
Hello Friends, Hi Myself Naresh (B.E. Comp. Eng) from Mumbai... I'm a Linux Device Driver Writer... I would like to learn writing Driver of "USB Devices"...BUT before that I'm presently working...
12
by: Steve | last post by:
I wrote a simple virtual device driver int15.sys, Is C# support load the device driver from AP?
3
by: bb | last post by:
I have a windows network device driver written in c++ and a user interface im porting to c#, my problem is i dont seem to be getting notified of the event calls from the driver to the c# app im...
7
by: Ritu | last post by:
Hi All, Can any body please tell me how i can write a device driver using CSharp. Thanks, Ritu
0
by: am | last post by:
Hi, I have an USB hardware device that came with some (poor) software. I would like to write my own software to use the hardware in dotnet. There are no COM dll's to reference from the...
6
by: Fla | last post by:
Hy! I'm newbie to VB 2005 and I'm trying to read value from a device driver, as I used in VB6 with CreateFile and DeveiceIoControl. I get a correct driver handle with CreateFile but I can't read...
0
by: Fla | last post by:
Hy! I'm newbie to VB 2005 and I'm trying to read value from a device driver, as I used in VB6 with CreateFile and DeveiceIoControl. I get a correct driver handle with CreateFile but I can't read...
0
by: freak | last post by:
I am currently writin an application for the spi device driver.After i use the driver once if i try to reload my buffer with other value ,it is not working properly.the driver does not support a...
1
by: Concepts Systems | last post by:
Hello All, Kernel Programming is the key to the digital city of device drivers: If you know the language for drivers you can get a device to do almost anything you want. Learn how to write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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...
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.