[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Newbie help with simple C program, USB device under Debian



Sending this again as it did not seem to get to the list when I first sent it this morning.

I am need of some help with a USB device under Debian; trying last night
multiple times to no avail.

I have a Dallas Semiconductor Thermochron temperature data logger that I
am trying to set. The data logger (DS1921G-F5) is attached to a USB
bridge (DS1921G-F5). I downloaded their linux utilities which consist of
two simple C programs: One to set a "mission"  and the other to download
the datat logged:

thermo21.c  thermo21.h  thermodl.c  thermoms.c

The readme states:


/These utilities are used to download (thermodl) and
mission (thermoms) a DS1921G Thermochron iButton.  The
DS1921Z/DS1921H are not supported with this application.

THERMODL:

usage: thermodl 1wire_net_name <output_filename> </Fahrenheit>
 - Thermochron download on the 1-Wire Net port
 - 1-wire_net_port required port name
   example: "COM1" (Win32 DS2480B),"/dev/cua0"
   (Linux DS2480B),"1" (Win32 TMEX)
 - <output_filename> optional output filename
 - </Fahrenheit> optional Fahrenheit mode (default Celsius)
 - version 1.03

Required on the command line is the 1-Wire port name:

example:  "COM1"                (Win32 DS2480B)
         "/dev/cua0"           (Linux DS2480B)
         "1"                   (Win32 TMEX)
         "\\.\DS2490-1"        (Win32 USB DS2490)
         "{1,5}"               (Win32 DS2480B multi build)
         "{1,6}"               (Win32 USB DS2490 multi build)
         "{1,2}"               (Win32 DS1410E multi build)

/When the device is plugged in dmesg shows:

usb 1-10: new full speed USB device using ohci_hcd and address 6
PM: Adding info for usb:1-10
PM: Adding info for No Bus:usbdev1.6_ep00
usb 1-10: configuration #1 chosen from 1 choice
PM: Adding info for usb:1-10:1.0
PM: Adding info for No Bus:usbdev1.6_ep81
PM: Adding info for No Bus:usbdev1.6_ep02
PM: Adding info for No Bus:usbdev1.6_ep83

In /dev I have:

usbdev1.1_ep81
usbdev1.6_ep83
usbdev1.6_ep02

Trying something like: /sh thermodl /dev/usbdev1.1_ep81 t.txt  /results
in an error.

/thermodl.c: line 1:
//------------------------------------------------------------------: No
such file or directory
thermodl.c: line 2: syntax error near unexpected token `('
thermodl.c: line 2: `// Copyright (C) 2000 Dallas Semiconductor
Corporation, All Rights 'eserved.


/Any hints on how to call the device?












Reply to: