473,699 Members | 2,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Device Driver Problem: PPP->DeviceDriver->RFCOMM

1 New Member
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 1797

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

Similar topics

2
6976
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 on "PCI ETHERNET NETWORK ADAPTER (RTL8139)" for that - reading it's Datasheet and trying to write simple backbone Driver BUT for that friend I need your Help... Resources I have/using -
12
13767
by: Steve | last post by:
I wrote a simple virtual device driver int15.sys, Is C# support load the device driver from AP?
3
5938
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 using the following code in c# in the UI to create an event public static IntPtr OpenGrantedPacketEvent() { IntPtr objDriver = Driver.OpenDriver(); IntPtr objEvent = Win32.CreateEvent(IntPtr.Zero, false, false,
7
4441
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
1542
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 original software. I have read a lot in newsgroups and everywhere it is stated that "you need a device-driver" - well I got the device-driver (.sys file in windows/system32 folder)
6
2002
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 values with ReadFile, as reported in this URL http://support.microsoft.com/default.aspx?scid=kb;en-us;823179&Product=vb6 I tried with ReadFile with the following code lines: Try
0
1155
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 values with ReadFile, as reported in this URL http://support.microsoft.com/default.aspx?scid=kb;en-us;823179&Product=vb6 I tried with ReadFile with the following code lines: Try
0
2561
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 circular buffer. If i close the device driver after each complete operation and then open it again it is working fine. Can anyone tell me whats the problem?
1
2089
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 device drivers with the help of industry experts. This module emphesizes on approach of identifying and resolving the critical issues in a project in a lmited time frame. Course Highlights:
0
8687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9034
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8883
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7750
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.