Programming :: Writing GPS Driver Over High Speed UART?
Oct 14, 2010
I am developing a GPS driver which is connected over a high speed UART. The driver of the high speed UART is available and it creates a device node /dev/ttyHS0. Now using the device node, I guess, I will be able to read/write from/to the GPS chip from user space but my aim is to write a GPS driver in the kernel space which would communicate with the high speed UART driver. After some initial study, I think I can either write a line discipline driver or a serio to communicate with the GPS chip firmware through high speed UART driver.
View 5 Replies
ADVERTISEMENT
Feb 5, 2010
I am writing a script to do a speed measurement from my ISP's test ftp server. To do this interactively I connect to the server, enter credentials, enable hash and download a test file. The process concludes with something like
Quote:
################################################################
226 Transfer complete.
1048576 bytes received in 2.87 secs (356.6 kB/s)
So I entered the credentials for the server in my .netrc file and created a little bash script as follows
Quote:
#!/bin/bash
cd ~/Desktop
# poiuytrewq is the limit string of the "here" document
[code]...
The script executes as expected EXCEPT that I do not see the statistics at the end of the transfer. It terminates thusly
Quote:
#################################################################################################### ############################################
ken@taylor12:~/Desktop$
I have tried adding another ftp command such as ls to the end of the "here" document (in case the results were clipped by the bye command) but to no avail. The ls result immediately follows the ### - no stats I am at a loss.
View 8 Replies
View Related
Jan 18, 2011
I just want to read and write some values (integer) to my driver. I used put/get user but always getting errors.
driver
Quote:
int Wert;
static int device_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsinged long arg)
int ret;
[code]...
Quote:
int WERT
ret=ioctl(fd, SETIT, WERT)
ret=ioctl(fd, GETIT, WERT)
if i say in C++ WERT is 5 the value arg of the driver becomes 5 but not WERT the returnvalue of get and put user is -1 so it failed.
View 12 Replies
View Related
Oct 21, 2014
I mount a BD-RE in Debian Jessie to write about 20GB of data. But the writing speed is terrible slow. I get a Speed of 250kb/sec.
Are there any options to increase the speed of writing? I don't use packet writing and no wodim, no growisofs, nothing. I just mounted the disk and I use mc (Midnight commander) to copy the data.
View 0 Replies
View Related
Jan 13, 2010
I have just formated and did a fresh install to start all over. I installed Ubuntu 9.1 and everything went fine but the network. The computer serve as a NAS and MediaPlayer. When getting a file from the server, I get a speed of 40-60mb/sec, which are good for a Gigabit network. When I try to put a file in, the speed can't pass more than 1mb/sec and often stop.
Here's the network info:
Code:
vric@XBMC:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:8c:a1:eb:55
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:8cff:fea1:eb55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]...
Edit: Looks like it's a Gigabit Problem. I connected the Ubuntu box to my Linksys router which is 10/100 and everything is MUCH faster.
View 2 Replies
View Related
Aug 15, 2015
Yesterday I've installed Debian 8.1.0 on my desktop pc. I'm using Nvidia GT 730. After booting, the GPU fan runs at very high speed and really gets overheated. I didn't install any drivers etc.
Is there a solution for this or do i have to switch to Intel/ATI to use Linux? I said Linux, because every distros i've installed makes Nvidia chipset overheated and the fan runs at max. speed.
I'm terrified about making the GPU burnt.
View 9 Replies
View Related
Apr 15, 2011
Few days back I changed the video playing speed to faster,since that day,SMplayer keep playing video at high speed even I've change the speed to normal...
View 4 Replies
View Related
Jul 12, 2011
is this normal to see in dmesg multiple times after booting (screenshot)
Code:
lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[code]....
View 2 Replies
View Related
Jun 11, 2011
I'm on a Dell Inspiron 6000. I installed i8kutils and it works. Fan speed reduces CPU temp from 50C to 44C. A start-up script invokes the i8k module: $ udo /usr/sbin/modprobe i8k force=1 which creates /proc/i8k. The man page for i8kctl is straightforward: a few simple commands to read info from the aforementioned file.So. I know nothing about writing even basic bash scripts. I gave it a go here but I know this is way wrong. Would anyone like to help a guy out? This is my starting point (don't laugh):
Code:
#!/bin/bash
# script to toggle fan speed low/high
[code]...
View 5 Replies
View Related
Apr 22, 2010
I have problems with my network speed when i ping my proxy server I end up getting a high packet loss generally more than 30%.I have tried to use various network monitoring softwares like etherape, wireshark, tcpdump but I am not able to get to the bottom of the problem.basically I am trying to find out where the lost packets are going.
View 7 Replies
View Related
Apr 14, 2011
I'm trying to simulate a script for two UES connected with a high speed common channel. The file is the same I've used in not enhanced umts with some changes, and it worked perfectly. The changes are indicated in the EURANE guide.
There are two lines of code:
Code:
$bs setErrorTrace 0 "UE1_trace_file"
$bs setErrorTrace 1 "UE2_trace_file"
that give me an error when I try to run the file .tcl
I've downloaded files I needed from EURANE page: SNRBLERMatrix and Ray_corr-3kmh-300m-0-200s-UEnr1,Ray_corr-3kmh-500m-0-200s-UEnr1,Ray_corr-3kmh-700m-0-200s-UEnr1
I've tried to use the first and the third for UE1 and UE2 respectively
[Code]...
I edit: The definition of the connection of TCP agents and sinks was incorrect.
View 1 Replies
View Related
Jul 14, 2011
I am trying to access an OpenBSD system that I have just installed via my PcBSD system by the use of a serial cable. I have been trying both minicom and cu but I am obviously doing something wrong... cu -l /dev/cuad0 returns /var/spool/lock/LCK...cuad0 Permission Denied. Can't Open lock file. all ports busy. And when I try to connect through minicom I either get a similar lock error, or minicom will sit at the connection screen with (offline status). I feel like the answer to my problems is a rather simple one, but I do not know where else to look for information.
View 3 Replies
View Related
Apr 19, 2010
This has got me stumped to the point where I have spent 5 days with little sleep trying to find what I did wrong. It should be simple yet it doesn't work. All I want to do is create a test /dev/fred device driver that will allow me to test my hardware, all I want to do is transmit some bytes out PSC5. It *should* be a simple matter:
1) Make sure PSC5's PADs are configured for Function 0, DS of 1
2) Make sure SCCR1 has PSC4, 5, and 6 ENABLED
3) Configure the PSC's registers for UART mode, transmit/receive enable, all that happy stuff.
4) Have an open, close, read, write, ioctl function
What happens is that everything hangs together just fine, when I open(/dev/fred) my open_iproc_psc6_uart2() gets called and everything gets configured -- I request memory, remap it, release memory as needed. When write(/dev/fred) is called, my driver's ech_write() is called and when read(/dev/fred) is called, my ech_read() driver function gets called -- great stuff, it should be *easy*.
The problem is, I get nothing out the transmit pin of the PSC. if I missed a configuration register some where? A clock I need to set? I'll have to sleep on this and maybe inpiration will come but this is such a simple thing I'm trying to do, it should work. In fact I compare my code against three examples on the Internet and it looks functionally the same. Code with debugging / un-needed stuff added to try to figure out whyt nothing comes out the serial transmit pin:
// ----------------------------------------------------------------------
// This is a device driver that creates /dev/fred and is used to send
// and receive serial data on PSC6. It's just a test driver, something
[code]....
View 1 Replies
View Related
Nov 12, 2010
I installed the NVIDIS driver for 64b Linux, and now I face a high cpu utilization (up to 40%) in the XORG when I swith from one application to another. I need the driver because otherwise some web pages are rendered with a something like a watermark
LSPCI
01:00.0 VGA compatible controller: nVidia Corporation G98M [Quadro NVS 160M] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Dell Unknown device 024f
Flags: bus master, fast devsel, latency 0, IRQ 169
Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f2000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at df00 [size=128]
[virtual] Expansion ROM at f4000000 [disabled] [size=128K]
Capabilities: <access denied>
NVidia driver
260.19.21
uname -r
2.6.18-194.26.1.el5
View 3 Replies
View Related
Aug 7, 2015
I recently switched from jessie to stretch on both i encountered a jerky ui in gnome 3. after a longer research i noticed xorg consumes over 80% of my first cpu-core while moving a window. for testing purposes i switched back to the nouveau driver and there is no high cpu usage while moving a window, also the ui is smooth.
i tried 3 different nvidia driver: the one from the debian repository, the current stable and beta driver from the nvidia site. i noticed on all 3 the same problem.
Code: Select alldaniel@Daniel-PC:~$ glxinfo | grep rendering
direct rendering: Yes
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_NV_path_rendering, GL_NV_pixel_buffer_object, GL_NV_polygon_mode,
xorg.log: [URL] ....
dmesg: [URL] ....
system:
nvidia gtx 760
intel xeon e3-1230v3
View 1 Replies
View Related
Feb 20, 2011
With the upgrade to Squeeze and the 2.6.32-5-686 kernel, my Dell GX260's 82845 video chip suffers from the documented intel driver bug (freezes within a few minutes). I tried to fall back to the vesa driver, but am only able to get 640x480 resolution. The monitor is an LG L1720P.
I turned off kernel mode setting (via /etc/modprobe.d/i915-kms.conf), and modified xorg.conf -- added Modeline entries (from gtf) and
additional Mode lines to try to force resolution. Relevant portions of xorg.conf, dmesg and Xorg.0.log are shown below.
xorg.conf:
Code:
Section "Device"
Identifier "Generic Video Card"
Driver "vesa"
[code]....
View 6 Replies
View Related
May 2, 2011
I am going to write a TCP server program using c. Can anyone give me some advices on whats and what not to do specially when using select?
There would be a lot of data to be transferred both on the server and back to the client. I already have a simple server here but the server uses a lot of resources. Maybe 3 to 4 connections and the server's load would rise to unacceptable levels.
Which do you think is better to use fork or select?
View 4 Replies
View Related
Apr 21, 2010
I want to write some PHP for a website that'll have the data that the script will generate written inside a table with thin black line around it, much like LQ itself. My problem is: how do I draw the box that the text will be inside of, since the amount of text will vary - if I have a GIF with a picture of a box, that'll be of a fixed length, and my script can then only generate that much text, for it to look nice. Or do I need to fiddle with the GD library to get done what I want?
View 4 Replies
View Related
Aug 11, 2010
So basically, there is a really cool writing system I have been working on. It could be viewed (for simplification purposes) like an encryption method for the Latin script.
Facts about the writing system:
It has a little over 300 symbols.
It is syllable-driven.
It is highly compositional (eg. "c", "ca", "cae", "ca " and "ci." all map to different symbols - and NOT by overlaying elements)
Symbols have medium graphical complexity (comparable to Korean Hangul, or Japanese Hiragana)
Has a rather complex set of diacritics (~10, some of which can go on any symbol)
Has no ligatures
How transliteration occurs:
Sequences of Latin symbols map to certain symbols. Example below:[G][rou][p ][hu][g.]Characters sequences between "[" and "]" map to a single symbol (so it would take only 5 symbols to write "Group hug.").
How I want it to work:
I would like to have a daemon that: Intercepts all text displayed on the screen.
Converts it to my writing system (changes letter sequences with individual Unicode codes)
Leaves unsupported symbols unchanged.
Displays all the text on the screen using my font and characters intertwined with the fonts and characters left unchanged.
For example, if you take the following line of C++ code:for (i = 1; i <= n; i++)
I would like it displayed like this:[fo][r ]([i ]= [1]; [i ]<= [n]; [i]++)
Bold-symbols should be in my Unicode font with special symbols defined for this writing system, and the rest should be in its original font and encoding. Also, I would like this encoding to hold for display-purposes only. The data in the memory should remain unaffected. This also means real-time adjustments: if I open a text editor (say, from the OpenOffice Suite) and I start typing, I would like to see what I type encoded with my writing system, even though the document actually contains Latin letters. This also means that the symbol immediately before the cursor may change as you type.
View 3 Replies
View Related
Apr 27, 2011
I have written a daemon server. I would like to add the ability for the daemon to update itself. That is, it should be able to download the latest version of the code (when it receives a signal from a client) and then restart itself. I am stuck on getting the daemon to restart itself. The problem is killing the old daemon without killing the process that is starting the new daemon. In my latest attempt, the daemon that is updating itself runs a program in a subshell (using system) that starts a restarter daemon that runs the original daemon (again using system) with the restart command option. With the restart option, the new version of the daemon sends a terminate signal to the old version. Obviously, when I run the original daemon manually with the restart option, it restarts reliably. I figured that issuing the same restart command from a daemon would adequately isolate the process doing the restarting from the program being restarted. Using ps, I can see that the daemon does actually restart. However, the client locks. In fact, a few times, the OS locked and I had to reset.
View 7 Replies
View Related
Apr 9, 2011
How to write a mkdir with -p option. I am struggling for creating subfolders. the chdir() is not working and thus subdirectories can't be created.
Code:
View 1 Replies
View Related
Apr 10, 2010
I'm not able to write to a file using my perl cgi script which is as fallows:
Code:
#!/usr/bin/perl -w
use strict;
print "Content-type: text/html
[Code]....
View 4 Replies
View Related
Feb 28, 2010
I am trying to write .pgm images using the O_DIRECT flag in open().I have a char* buffer which has the image data. I know that I have to align the buffers and have done that using posix_memalign() yet only a part of the image gets written.Has someone used O_DIRECT for writing files successfully?
View 1 Replies
View Related
Jul 7, 2010
I'm trying to write a simple, console based application in linux, in c++. I know how to start in Eclipse and I have some experience in c++ from Windoze. I would like to ask, if there is some tutorial available on writing console apps. I mean, I know from using linux that there are two conventions on using parameters in command line (-v and --version for example).
View 2 Replies
View Related
Mar 19, 2011
My platform is linux Centos 5. I have read that to learn programming is to read well-written code and take some project to work with. I am always fascinated by routers and firewalls. Like pfsense and vyatta. May be my searching skills are worst but i am not able to find any good tutorials. Ofcourse i dont expect anyone to write a complete router on their blog but wasnt even close to it.
View 1 Replies
View Related
Oct 16, 2010
I have an ATI Radeon HD 4850 running on Arch Linux with the xf86-video-ati driver.
Is there any way to control the fan speed (from a conf. file, the command line, whatever) or should I change to the Catalyst driver?
View 1 Replies
View Related
Mar 13, 2011
Running 10.04 LTS, wondering if there was a way to control fan speed using the open source radeon driver with a HD5770, it's currently far too loud even when not really being in use.
View 3 Replies
View Related
Nov 11, 2010
I am running a java application on centos. For now I have a gsm modem connected via the the usb cable. Below is the message I get when I type the command dmesg | grep tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
usb 2-2: pl2303 converter now attached to ttyUSB0
[code]....
View 9 Replies
View Related
Jun 3, 2011
Code:
int main ()
{
[code]...
View 9 Replies
View Related
Oct 2, 2010
I have assignment to write bash script and I have to submit it after tommorow . I do not have experience to finish it by myself.I am really need help if any one can contact me. on my email I will be thanks him/ her.
View 14 Replies
View Related