The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sata/sas controller on redhat itik Red Hat 1 06-04-2008 02:35 PM
how do you login as sms-svc on a system controller vinix SUN Solaris 1 02-04-2008 06:41 AM
Controller target disk? sudhir_shet SUN Solaris 1 01-19-2008 06:24 PM
serial port device path tyskertøs UNIX for Dummies Questions & Answers 6 08-05-2004 12:22 PM
Controller Naming shibz UNIX for Advanced & Expert Users 1 01-22-2003 11:07 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2007
monkeybiz monkeybiz is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 1
Accessing device with Prolific USB-serial controller.

I am trying to access DG-100 gps logger on Mac OS X with POSIX API. The device uses a Prolific usb-serial controller, and connect to the usb port on my mac.

After I install the Prolific driver, it shows up as /dev/tty.usbserial and /dev/cu.usbserial. The vendor has published the data format. So I write() the "get configuration" command to /dev/cu.usbserial, and get response back with read(). However the device doesn't seem to answer any command after the first one. I have to restart it to make it working again.

I am not sure if this is a general serial communication problem or specific to the device. When i talk to such a device, do I need to acknowledge in some way so that it will accept the next command?

Thanks.
  #2 (permalink)  
Old 06-11-2007
odys odys is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 59
Hi,

Maybe your device is blocking during sending output to first request.
I would try to use 'cat' to write and read in 2 different processes.
Run
cat > /dev/cu.usbserial
in one terminal and
cat /dev/cu.usbserial
in another.

Regards
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0