Programming :: Timer Of 10 Ms For Read / Write A USB Device?

Apr 13, 2011

I need programmer a timer of 10 ms for read/write a USB device

View 4 Replies


ADVERTISEMENT

Programming :: Timer In Socket Programming - Wait For X Sec After Read() And Then Disconnect The Client Connection

Mar 8, 2011

I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.

View 3 Replies View Related

General :: Make The Root Device Read/write?

Mar 4, 2011

I need to change a filename but when I boot up I get the message root device is read-only. Is there a way of changing this so that I can change the filename. I have a Mac Pro running Leopard OSX. The graphics card an NVIDIA 7500GT or driver has failed. It was suggested elsewhere that I change the relevant kext files to filename.kext.old, which I did, now when I try to boot start in OSX I get a message in various languages telling me to restart. I have tried booting in safe mode and from original Installation CD. In Safe Mode I get the same multi language splash screen, from CD I still have the graphic card problem, screen freezes and artifacts appear. So I boot up straight into CLI by holding down CMD-S hoping to be able to change filenames back but it says device read-only.

View 2 Replies View Related

OpenSUSE Hardware :: Finding A External USB CD/DVD Read/write Device?

Jul 30, 2011

My wife is purchasing a netbook with no internal CD/DVD writing device, so we plan to purchase an external CD/DVD USB-2.0 read/write device. Our local PC shop has the following 3 external USB-2.0 DVD read/write devices:

(a) Samsung DVD-Burner SE-S084F/RSBS [not listed on Samsung site - too old ? ]

(b) LG DVD-Burner GE24NU21 USB2.0 [not listed on LG site - too old ? ]

(c) Super-Multi Portable DVD Rewrite (GP10 Lite USB2.0 Slimline) GP10NB20 (mentions Mac OS/X support, which is encouraging)

None of those are listed in the openSUSE HCL. Has anyone successfully used any of these with GNU/Linux (my google surfing on this revealed no GNU/Linux complaint nor any success stories) ? Or is there another such external USB-2.0 read/write DVD burner device that is recommended ?

View 2 Replies View Related

Ubuntu :: Unable To Mount Device, Write Protected & Read Only?

Feb 17, 2011

I used dual booting with Windows Xp and Ubuntu 10.04. Because errors, I reinstall Windows and then I could not enter GRUB, and Ubuntu partition disappear. I tried to reinstall ubuntu using live CD but I could not detect last ubuntu partitions. After I installed fresh Ubuntu on new partition, I got error message like this:

Unable to mount floppy0 Mount: block device /dev/fd0 is write protected, mounting read-only Mount: could not determine the file system type, and none was specified

View 8 Replies View Related

Software :: In Platform \ Use Ioctl Function To Read/write Data To Hid Device?

Jun 24, 2011

Now i have a problem.I want to used a hid usb device under linux 2.6.11.But i can't know how to used ioctl function to send and receive data to a hid device

View 3 Replies View Related

Slackware :: Optical Drive Not Identified - Get Permission To Read / Write In The Device

Aug 6, 2010

On one of my machines the DVD/DVDRW/CDROM drive appears as /dev/hdc and is not identified as an optical drive by HAL. It is owned by root: disk and thus no users get permission to read/write in the device (not even those in the cdrom group). This stops playing DVDs, ripping CDs, no notifications appear when a disk is inserted, etc. etc. When I set the permissions for all to read/write from the device then users can access but still no notifications are shown.

On all my other machines the optical drive is identified as /dev/sr0 and is owned by root:cdrom . All have Slack 13.1 . Previously with Slack 12.2 this machine still had the drive in /dev/hdc but the permissions were right (I think because I added it to /etc/fstab with options for users to access it). I believe the problem is down to HAL not setting this drive to the correct group, but how do I fix it? I hate HAL, it has a mind of its own, just like in the scifi movie

View 2 Replies View Related

Programming :: Bash To Read Write Registers?

Jun 3, 2010

I have been looking for a script example of reading and writing to the parallel port's data, status, and control registers using bash. I see it done in pascal, tcl, etc. but nothing in bash.

View 5 Replies View Related

Programming :: Read Datas After Write On Serial Port?

Mar 8, 2011

I'm currently developping a C program to drive a Telit GM862-GPS module using the serial port of an embedded board (SBC9261).The communication with the module is based on AT commands : I just send my command to the module, through the RS232 line, and the module answers immediately.Here's an example with a basic command returning the GPS's acquired position, sent with Minicom :

Code:
AT$GPSACP
$GPSACP: 104323.000,4x45.6171N,00x38.6219E,0.8,446.5,3,272.14,0.21,0.11,080311,09

[code]...

View 4 Replies View Related

Programming :: Write USB Device Driver?

Oct 11, 2010

I know, I know..."How long is a piece of string"?

I have one of these devices:

[URL]

Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?

View 2 Replies View Related

Programming :: Write A Program Which Will Read Input From A Text File

Apr 7, 2010

i am trying to write a program which will read input from a text file, check if each line contains any alphabets and then display a message imforming me if there is an alphabet in each line. My text file is formatted in this way...

[Code]....

View 2 Replies View Related

Programming :: SQLite Read, Write, Select, Compare Statements For C++

Jun 9, 2010

I am using C++ with SQLite db in a program that will read read a sub set of records, compare records and write different records to another database. I have a SQLite book, but it only shows examples for the C API. Anyone have code samples in C++ for the following:

Open database
Close
Select *
Read
Write

Or, just show me how to execute a SQL statement with C++ and I can then figure out the various SQL statements I need.

View 5 Replies View Related

Programming :: Block On Write Call To TtyACM Device

Nov 1, 2010

I have a write call to a ttyACM serial device that blocks after several hundreds bytes are written.I'm writing in ~25 byte chunks, so I have 5-8 successful writes, then the next write blocks forever.I can bypass the blocked call using select, but I can never call write again without closing and re-opening the port.

The serial port is opened correctly because I can read from it just fine. Write permissions are correct, and it's opened RW.The code is likely correct because I tested the same code using the same device on a pure RS-232 serial port, and it worked fine - no block. Is there anything to know about the linux ACM module?It's my understanding that write calls basically shouldn't block.They're supposed to return -1 if there's an error.

View 1 Replies View Related

Programming :: Fail To Write To USB Device Boot Sector / What To Do?

Jul 4, 2010

I'm writing a C program that reads the boot sector of a USB disk. (it is mounted as /dev/sda1). I'm able to read the sector, by the calls code...

The problem is when I wish to write. I use the call:
bytesWrite = write(fd, buf, 512)
The 'write' returns the value of 512, which looks as if the write was successful, yet
when I read again the /dev/sda1 device, I see that no writing was actually made.

Can anybody tell me what do I need to do in order to allow an actual write to the
device?

View 2 Replies View Related

Programming :: RHEL5 - Project To Write Device Drivers

Dec 1, 2010

I am final year MCA student. I like to do my project in Linux. I know a little in C. I am pursuing RHCE certification. I am using rhel5. I am interested to write linux device drivers and willing to do my project in that.

View 9 Replies View Related

Ubuntu Multimedia :: ALSA Device Has A Broken Timer

Jun 4, 2011

I have a Lubuntu installed Netbook (Toshiba NB200). When I try to watch a video and listen to music smoothly. So I started the program Audacious on the terminal and I get the following Warning Message:

Code:

** WARNING **
Audacious has detected that your ALSA device has a broken timer. A workaround
is being used to prevent CPU overload. report this problem to your
Linux distributor or to the ALSA developers.
ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred

[code]....

View 2 Replies View Related

CentOS 5 :: Time Error In 5 Server - PCI: Setting Latency Timer Of Device 0000:02:02.0 To 64

May 11, 2010

What can be the cause of this error.

dmesg | grep -i time
ACPI: PM-Timer IO Port: 0x408
Calibrating delay using timer specific routine.. 4658.19 BogoMIPS (lpj=2329098)
Using local APIC timer interrupts.

[code]....

View 7 Replies View Related

Programming :: Socket And Timer Programming - Server Doesn't Execute Any Msg Which Client Sent

May 16, 2011

i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.

#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....

View 1 Replies View Related

Programming :: GNU C - Timer Not Executing

Mar 3, 2011

Why is the timer not executing?

Code: #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
void func(union sigval sv)
[Code]....

View 1 Replies View Related

Programming :: 30 Minute Timer In Bash

Jun 8, 2011

I've recently started coding in bash and I'm making a diagnostic check CD for rackmounted computers to print out to an LCD screen. So far it works but what i want it to do is, when it checks what ethernet ports are unplugged, it stays there for 30 minutes or so and proceeds through the script. I've looked up cron and that seems to be useful for making timers on permanent systems but I just want the cd to boot, do the check and then eject it and let the real OS take over and I've also tried using:

while [ `sleep 30m` ];
do
<script>

with no luck. Is there any command I can use to do this? I've noticed a few examples where people have captured the time and then used a while less than/greater than statement but I'm not sure how to do this. Is it possible to do a concept like:

while [ %current time -lt %current time+30 min ];
do
<script>

View 8 Replies View Related

Programming :: Delay Calculation For LSB In Timer?

Sep 5, 2010

On the following link Following code is given

Code:
loopbit = loops_per_jiffy;
/* Gradually work on the lower-order bits */
while (lps_precision-- && (loopbit >>= 1)) {
loops_per_jiffy |= loopbit;
ticks = jiffies;
while (ticks == jiffies); /* Wait until the start

[Code]...

View 2 Replies View Related

Programming :: Generating Timer Interrupts In C?

Jul 23, 2010

I'm trying to understand how interrupts work. Is there a way to generate timer interrupts in C. Also can we enter into the protected mode of the CPU. Does OS (specifically, linux) place any restrictions on user programs entering protected mode. If it does not, do we just have an assembly language program which changed the mode, followed by the C code... I'm just trying to understand how things work at the lowest level. So I'm trying to write few snippets to test my understanding.

View 3 Replies View Related

Programming :: Dynamic (kernel) Timer Never Is Started Again

Jan 26, 2010

My system: Ubuntu 2.6.31. Language C, compiler: gcc I am running dynamic timer as a kernel module and my issue is that the once the timer overflows, the program finishes. On the other hand i have forced to arm the timer again because of a while loop but the timer never is started again. i am targetting a periodic timer but it runs once and thats it.

[Code]...

View 1 Replies View Related

Programming :: Implement A Timer Expiry Function

Jan 17, 2010

I'm implementing a TCP protocol. TCP implementation requires to send packets continuously and if the receiver doesnt respond after a particular interval of time it should resend the packet again. I need some method to implement a timer expiry function. How can I implement it? Should i implement threads (If yes can you please give a sample)? or is there any better method? I'm implementing it in a Unix system.

View 3 Replies View Related

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

Ubuntu Installation :: Disk Space - Failes On A "E: Write Error - Write (28 No Space Left On Device)"

Jan 4, 2011

df -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.

du -sh /* | sort -gr | head -n 5

I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.

View 1 Replies View Related

Ubuntu :: Read And Write To USB?

Jul 18, 2011

I did install QLandkartGT and the plugin to use Garmin with it and it looks like it work, but when I do press "Live Log" I get the error message; "Device Link Error. Failed to request real time position. Realtime thread failed. Failed to configure USB: could not set config 1: Operating not permitted".

I also get a similar error when trying to download tracks; "Failed to download tracks. Failed to configure USB: could not set config 1: Operation not premitted".

My guess is that Ubuntu do not allow programs to use the USB port, so my question is how I do allow this program (or all) to use the USB ports.

View 3 Replies View Related

Debian :: Using OpenSUSE Can't Read Or Write On The HDD

Aug 8, 2010

I want to use dual Monitor on Debian Lenny amd64, I have the nVidia 8600 GTS. I googled several times, I have to change the xorg.conf (as it seems) but I can't - no rights.

And there's another thing... I have a dual boot system along with the openSUSE HDD but I can't open it. And using openSUSE I can't read or write on the Debian's HDD. How can I change that?

View 3 Replies View Related

Fedora :: Read & Write Share With NFS In 13

Jun 18, 2010

I can't see any option for recursive directories in nfs in fedora 13.

This is my set-up:

Code:

Code:

save and exit.

Code:

When i mount the directory /media/Data from another Fedora 13 box i don't have read and write permissions for each and every file. The -R recursive option would be handy unfortunately this option is unavailable. The red hat docs have not been helpful in this respect.

Code:

Code:

The mounted partition is of the ext3 type. With the nfs-3g type i don't have any issue however most of my directories/partitions are of the ext3 type so i need get it sorted.

I changed my user name id number to the same number on all boxes thus giving me write access. There must be a better solution than this.

View 3 Replies View Related

Ubuntu :: Not Being Able To Change To Read-and-write

May 29, 2010

I just installed Ubuntu 10.04 on my system, and I put in a really old game CD for my really old computer. I cannot run the setup program , however because "it is not executable". I can't change this , because it is read-onlybut I can't chane this either. As I'm new to this, I was wondering .

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved