LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2012, 07:45 PM   #1
dmiralles2009
LQ Newbie
 
Registered: Jul 2012
Location: puerto rico
Distribution: several, depending on the embedded system
Posts: 4

Rep: Reputation: Disabled
trying to use custom made char driver as a serial port


Hello:
I created a char driver for interfacing the UART attached to a PC/104 in my ARM embedded computer. I was able to create the driver and it get registered on the system when selecting the IRQ,reserving the iomem, etc.
Using the ioctl() system call and the ioctl in the driver I suspect that I can set up the device serial parameters. However I can not read from the device I created, It appears that the writes to the device are not answered!!!
Using printk in the driver I can see from user space the buffers that are written, however when seeing the buffers read I just see the same buffers that I wrote from user space.
I suspect 2 conditions
1- If I am using the char device as a serial port how can I set the I/O port for it(setserial returns Unknown IOCTL command for this driver: 541e. Cannot get serial info: Invalid argument)using c code in the user space or in the kernel space?
2- How to i determine exactly to what address my char driver should look in order to comunicate with the pc/104 board?
Thanks in advance
Damian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading TV remote signal using custom IR module connected on serial port. hack_tick Linux - Kernel 3 10-07-2011 02:33 PM
Custom serial keypad driver mj1856 Linux - Embedded & Single-board computer 1 12-01-2010 09:13 AM
Which driver type suits my custom serial device best? ansidor Programming 1 09-15-2010 04:55 PM
char by char read from serial port windell Programming 7 08-05-2008 09:40 PM
Driver for serial port vasanthraghavan Linux - Software 0 01-31-2005 03:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration