3

I have a $12 USB stick that records temperatures (on the device itself).

For details, see http://www.pcsensor.com/usb-thermometers/gold-temper.html

I downloaded its software, and it works fine in Windows - currently Win-10 Insider Preview 17945 or whatever the latest "FAST" Win-10 is... (Now, I'm currently in Linux)

When I boot into Ubuntu 17.10, and compile the supplied software (makefile, C-program etc) I get

$ temper232    
/dev/ttyUSB0: No such file or directory

An lsusb shows

Bus 002 Device 004: ID 0c45:7401 Microdia TEMPer Temperature Sensor     

The C program has a line:

#define MODEMDEVICE "/dev/ttyUSB0"     

$ dmesg | grep -i temper    shows     
[    2.490091] usb 2-5.4: Product: TEMPerV1.4
[    2.493187] input: RDing TEMPerV1.4 as /devices/pci0000:00/0000:00:13.2/usb2/2-5/2-5.4/2-5.4:1.0/0003:0C45:7401.0003/input/input5     
[    2.553603] hid-generic 0003:0C45:7401.0003: input,hidraw2: USB HID v1.10 Keyboard [RDing TEMPerV1.4] on usb-0000:00:13.2-5.4/input0     
[    2.555527] hid-generic 0003:0C45:7401.0004: hiddev1,hidraw3: USB HID v1.10 Device [RDing TEMPerV1.4] on usb-0000:00:13.2-5.4/input1  

So where can I go from here? It seems to be some USB / Serial port thing. I haven't used serial ports since floppy disks on Win 3.1!

There is a lot of info on the internet on this device, but most of it involves Python, Github, Raspberry-PI LAMPs (which I also have), PERL (gads!), and something called a "mock", which I never heard of before! Must read-up on it!

I just want the basic device to respond with a temperature, at least in a terminal!

More info can be supplied! Just ask!

1

This worked for me on CentOS but it should be the same on Ubuntu.

First install with pip install temperusb (if this fails try pip2 install temperusb to explicitly request the usage of python2 pip)

Then you just run temper-poll and it will prints the current reading.

7
  • Thanx! But I've pretty well given up on this USB device. Why? Because its USB power generates heat IN THE DEVICE. I made several measurements and the device always- ALWAYS - shows a few degrees above the ambient temperature. And this depends on whether it is +20C or -15C. And whether a wind is blowing (cools the device). It's fine for rough measurement (freezing pipes or winecellar heating up) but no good for a detailed temperature log. – aqk May 15 '18 at 23:53
  • ADDENDUM - I found many complaints about this device- how it would heat up insanely (250C etc), and sometimes folks offered how to "re-calibrate" its high temperature. Note: its temperature was ALWAY "high", never "low". Now do you understand why? Heck it is still good for a $11 device. – aqk May 16 '18 at 0:47
  • @aqk I was about ready to use it for emergency shutdown of my server in case of over heating. In the first 24 hours of tests it seems ok but your info is troubling. Maybe it's over heating only if you're polling too frequently or I was just lucky. Have you found a replacement that is not ten times more expensive? – ndemou May 16 '18 at 4:08
  • I'm sure it will work fine for your purpose. I am trying to set up a simple "weather station", and I'd like the temp to be as accurate as possible. Perhaps I can glue the device to a larger piece of metal, that will act as a heat sink, and always show the ambient temp. I just have to keep the apparatus out of the Sun! No, I havent yet found one that insn't 10x as expensive! LOL ;-) – aqk May 17 '18 at 21:05
  • PS- Thanx for the "Wake-up" question! I haven't looked at this project for a few months. Time to resume! And I just came up with the wonderful Heat-Sink idea while reading your comment! PS#2 My polling is 1 min. Maybe I'll chg it to 5 minutes. – aqk May 17 '18 at 21:17
0

Given the device states: "(Note: Our software just support windows OS .)", I'm not 100% sure this will work but should be worth a try.

Try the script here: command to determine ports of a device - to find the correct device path for your temperature sensor.

Then comple the C program again, but add MODEMDEVICE=/path/to/device/ from the script results in the command line when you compile. According to GNU Make, this should override the flag in the program source.

1
  • Sorry- got involved with other projects. recompiled the C pgm with changes but problem remains. Seems the li'l Temper guy isn't too friendly towards Linux. Will forward more details soon. – aqk Jan 13 '18 at 1:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.