Hardware :: Serial Comm When Reading Sensors?

Apr 9, 2010

I have a configuration consisting of:

1. my Atmega168 MCU connected to some servo motors and sensors, and
2. my Linksys WRT54GL router working under OpenWRT Linux WhiteRussian 9.
3. they have a working and tested serial connection.

Now my problem.I open a file descriptor to my serial port called /dev/tts/1, and read a sensor (the second sensor commented, as you see bellow). This works perfect. Then I uncomment the next

sensor, but the code continues to behave as if I didn't uncomment it!If before the reading of the next sensor I first close my original file descriptor and reopen it, it starts to work right, but this is inefficient, as I have various sensors and it is not logical to open

[Code]...

View 1 Replies


ADVERTISEMENT

Ubuntu :: Install Javax.comm For Serial Port Programming?

Apr 16, 2011

How do I install Javax.comm for serial port programming. I have been all over the Internet without finding anything useful. I did install the librxtx-java package, but still eclipse or monodevelop will not recognize import gnu.io. I am using eclipse. What am I doing wrong. Surely, it should not be this difficult. I might have to do this in C++, or Basic even (Gambas2) if I can not figure this out.

View 1 Replies View Related

Ubuntu Networking :: Bluetooth - SPP Mode / Listen (and Also Send) To Serial Comm Msgs On Bluetooth?

Jun 25, 2010

i have a bluetooth modem (BlueSMiRF) that is connected to Arduino Duemilanove. I am trying to see serial communication messages from the bluetooth modem.

I have Blueman Device Manager that enabled SPP (Serial Port) and it says :

Code:
Serial port connected to /dev/rfcomm0
How do I see the serial communication on this?

I tried on console

Code:
$rfcomm listen 0
but it's stuck at
Code:
Waiting for connection on Channel 1
Is there any other way to listen (and also send) to serial comm msgs on bluetooth?

View 1 Replies View Related

Hardware :: Reading Serial Port With C?

Aug 12, 2010

I have two usb2serial adapters connected to my PC with a null modem (I am doing some testing to learn serial comm for a particular application). I am writing to /dev/ttyUSB0 a trying to read /dev/ttyUSB1. I have used screen (screen /dev/ttyUSB1 115200) and am able to see the characters being written. I am also able to read and write with Python with the following code

Code: import serial,time,sys
ser1 = serial.Serial('/dev/ttyUSB0',baudrate=115200)
ser2 = serial.Serial('/dev/ttyUSB1',timeout=2,baudrate=115200)
ser1.open()
ser2.open()

[Code]....

View 3 Replies View Related

Software :: Reading/Writing To Serial Ports (Rs-232)?

Dec 5, 2008

I am about to write a program to listen and read data from /dev/ttyS0 and write the data to /dev/ttyS1 after processing. Also, the same time I need to listen to /dev/ttyS1 and write to /dev/ttyS0 if any data arrived at /dev/ttyS1.

View 9 Replies View Related

Programming :: Displaying I/O Possible When Reading Data From The Serial Port?

Aug 31, 2009

I have got a problem while reading from the serial port. I'm working on iMX-31 board and Eclipse IDE. Whenever I'm trying to read any data through the serial port, it's displaying I/O Possible and the application is being terminated. After reading I'm trying to write this data on a file. Here are the excerpts from the code:

# int main()
{
if (openport()<0)

[code]...

View 7 Replies View Related

Hardware :: Reading Raw Codes From A Remote Control With A Tekram IR-210B Serial Dongle?

Oct 1, 2010

I need to read raw codes from various remote controls (for TVs, DVRs, etc). For that I use a Tekram IR-210B serial dongle. At least I try, since I can't put any meaning on the codes I get by reading /dev/ttyS0 . I tried various tricks, including reading /dev/ttyS0 as a stream, using the Linux irda stack, lirc, similar experiments with Windows 2000/XP too, but nothing seems to work (at least not as I am expecting). The technical documentation is non-existant, Tekram e-mail support doesn't answer (or returns non-existant user errors when it does), browsing the kernel file tekram.c didn't help either, so I'm kind of stuck.

Because I won't need this for more than a few days (or weeks at the very most), I don't need a rock-solid solution, what I need is nothing mode than read raw (presumably RC-5) codes from a few remote controls (2 of them being from mainstream brands, another one claiming to be universal). So if nothing else a dirty trick will perfectly do.

Ideally, a technical documention on how to get the raw codes from the remote controls is what I am looking for. Something that tells me what baud rate to use, which parity, number of stop bits, and how to decode the stream (as I suspect it doesn't contain the raw codes as-is). However, I will be happy with any advice you may have on where to look or what tricks I might try.

View 4 Replies View Related

Ubuntu :: Lm-sensors Will Not Detect Any Sensors On HP Desktop

Mar 3, 2011

I can't for the life of me get the xsensors to work. I installed lm-sensors, the applet and also xsensors.I followed everything on this guide:URl... Went through it more than twice and a couple of restarts. I just can't figure out what's wrong.When I run "sensors" nothing is found. I ran the sensors configuration and it only found one device to add to /etc/modules. Please see the trace below, I would be very grateful if you can help me find the fix for this! The desktop is an HP Pavilion a730n with a Pentium4 processor.

View 3 Replies View Related

Networking :: Serial Port : Read Data, Not Reading Complete Data?

Mar 5, 2010

I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port

Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)

[code]...

View 5 Replies View Related

Software :: Lm-sensors Does Not Find All Sensors?

Jun 21, 2010

I would like to use lm-sensors with my new PC.With my old one lm-sensors showed all sensors of CPU, GPU, wattage and Fan.With the new AMD64 (kernel 2.6.32-5 on Debian Squeeze) I get only the temperature of the GPU and the HDD.The only found sensor is "Fintek F71882FG/F71883FG Super IO Sensors"No embedded "AMD [...] thermal sensors" found in sensors-detect How can I fix it?sensors-detect

Code:
#
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100)

[code]...

View 3 Replies View Related

OpenSUSE :: New Motherboard - Command "sensors" Shows "no Sensors Detected"

Mar 17, 2010

I just recently changed my motherboard, and now the command "sensors" shows "no sensors detected" I ran sensors-detect but still i get no sensors detected.

View 9 Replies View Related

General :: Windows With Putty Via USB Serial Cable To Serial Port - Output Ok, Input Isn't?

Jan 13, 2010

I am trying to get two way serial communications going between a Windows XP system and a Linux system (RHEL 5).I have /sbin/agetty -L 9600 ttyS0

in /etc/inittab. I am using a generic USB to serial adaptor on Windows (Unitek) and a null modem cable. I have putty configured for 9600 baud, 8 bits, no parity, one stop bit, no flow control.I get the login prompt from agetty in the putty window but input does not work; I see weird characters in the putty screen. I can echo output into the device from windows and see it, but

cat < /dev/ttyS0. just prints out weird characters from what I type.

View 3 Replies View Related

CentOS 5 Hardware :: NetMOS PCI 9835 Dual Serial Card - Can't Use The Serial Ports

Feb 21, 2009

On my CentOS 5.2 install I've installed a dual-port serial card based on the NetMOS 9835 chipset. I've followed the serial instructions, but everything they tell me to do is already done - see setserial outputs below. I've compared these values to the lspci output (below, NetMos card is at the bottom of the output) for the card and it appears right. Problem being, I can't use the serial ports. Oh and I did use search, and looked at every 9835-related article before posting this :)

[Code]....

View 17 Replies View Related

Debian Hardware :: How To Get Old Serial-touchscreen To Work With USB / Serial Adapter

Oct 9, 2015

I am hoping to be able to get an old serial-touchscreen to work with a usb/serial adapter. I had this touchscreen working some years ago on different hardware. I would like to hook it to the machine I am setting up as a multimedia host with mythtv among other things.

Following the instructions I left behind when I got this to work way back when does not work. See [URL] ....

This info is a work around to get the xserver to see the touchscreen. [URL] ....

I do know that the touchscreen works as I am able to get garbage on the screen as in the first part of my howto. But I have not had any success getting xorg to see it. I wish I had posted a copy of the xorg.conf at the time, but......

There is an issue with the current xserver in testing that I am hoping the next update (in unstable) will fix when it gets pushed to testing. That is that Code: Select all# X -configure fails with a segfault. So I am not able to generate the xorg.conf needed to get it to work. I was going to post a bugreport, that is when I found out there is an update in unstable, so I am waiting for it to get pushed at the moment.

Anyway I am hoping that I can link /dev/ttyUSB0 to /dev/tty0 and get it to work. I would like some kind of guess as to my chances of success before I go to all the work of getting the monitor hooked to the host.

View 1 Replies View Related

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

Ubuntu :: Serial MIDI - Doesn't See Any Serial Ports?

Jun 21, 2011

I have a bit of a dilemma. I'm attempting to use a microcontroller to send MIDI messages over a virtual serial port. I want to (eventually) read them with Mixxx. I'm using an FTDI chip, so I get a /dev/ttyUSB0. I've tried spikenzielabs' Serial-Midi program, but it doesn't see any serial ports. NOTEMIDI looks really old and won't compile on my 10.04 LTS machine.

View 2 Replies View Related

Software :: Connect A Serial Cable To The Serial Port?

Mar 23, 2010

We have a new machine with RedHat enterprise 5 on it. I need to connect a serial cable to the serial port and talk to another system (old alpha system) instead of using a VT connected to the alpha.Does RedHat come with anything like Keaterm/hyperterm/etc etc?

View 3 Replies View Related

Ubuntu Networking :: Broadcom On 2.6.34 - Reinstall Error Code: Reading Package Lists ... Done Building Dependency Tree Reading State Information

May 20, 2010

i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...

[Code].....

View 9 Replies View Related

Debian :: K10temp Module For Lm-sensors?

Jan 6, 2011

After I ran sensors-detect, it said that İ needed k10temp module to be compiled, so I searched some forums and got required stuff. However, before compiling it, I added the gnome applet for sensors to the panel, and surprisingly it shows the cpu and motherboard temperatures. How reliable it is? Do I still need to compile k10temp? (I will compile it since I don't want to use a kernel from experimental repo).My kernel is 2.6.32-5-amd64, TestingCPU: AMD Phenom 2 x4 955 BE

View 2 Replies View Related

OpenSUSE :: Temp Sensors Not Found?

Jan 22, 2010

just downloaded gkrellm and I go to set the temperature sensors and I get "No Sensors Detected" now I've never dealt with something of this nature before so can anyone tell me where I might begin with this one?

View 9 Replies View Related

OpenSUSE :: Getting Sensors To Work On Kernel 2.6.33 ?

Apr 6, 2010

Im having some trouble getting sensors to work on kernel 2.6.33.

This is what i have at sysconfig under lm_sensors:

Code:

When i do /etc/init.d/lm_sensors restart i get this:

Code:

I know k10temp driver is now included on kernel 2.6.33 so i dont know what to do.

View 1 Replies View Related

Ubuntu :: Im-sensors Detect Only Coretemp?

Jan 14, 2010

i moved on ubuntu 9.10 Karmic, before on 9.04 All sensors work fine but now only "coretemp".so ran "sudo sensors-detect" and output result is:

Code:
#----cut here----
# Chip drivers

[code]....

View 2 Replies View Related

Ubuntu :: Can't Seem To Get Lm-sensors Display / Applet

May 6, 2010

I had previously installed lm-sensors and the associated files on my Lattitude 2100 when I was running 8.10 and got a great little bargraph readout thing at the bottom of the screen that helped me monitor system temperatures. Now that I've upgraded to lucid lynx netbook, I can't seem to get the same thing going. I installed the lm-sensors etc. but the applet/readout/display whatever you want to call it, is nowhere to be found.

View 8 Replies View Related

Ubuntu :: Changing Fan Speed With Lm-sensors?

Dec 6, 2010

control my cpu fan speed? It's really loud, and I'm not stressing the CPU at all, but it seems to be running at 110% all the time.

I've tried going through some old posts related to lm-sensors but nothing seems to work.

I'm using an Asus motherboard (M4A88TD-M), an AMD 1075t six-core processor, and I have Ubuntu 10.10 installed. Ive run sensors-detect, followed the onscreen prompts... the output looks like this:

Code:
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100)
# System: System manufacturer System Product Name
# Board: ASUSTeK Computer INC. M4A88TD-M EVO

[Code]....

View 9 Replies View Related

Ubuntu :: LM Sensors - Cannot Find CPU Temperature

Dec 29, 2010

I have tried lm-sensors and a few others, firefox just crashed.
Phenom II X6 1090T
MSI-890FXA-GD70 motherboard
Ubuntu 10.10

Senors:
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +0.0C (high = +70.0C)
sensors-detect

Now follows a summary of the probes I have just done. Just press ENTER to continue:
Driver `k10temp' (autoloaded):
* Chip `AMD Family 10h thermal sensors' (confidence: 9)
No modules to load, skipping modules configuration.
Unloading i2c-dev... OK

There is a debugging panel on my motherboard, and I think that that displays the CPU temperature, although I am not sure.

View 6 Replies View Related

Ubuntu :: Sensors Applet Always Shows 40C?

Apr 14, 2011

I installed lm_sensors via Synapt & the Sensors Applet on the panel, but that applet shows me an invariable 40�C for 2 temperatures - 'CPU' & 'temp1'.Now I know it can't read the CPU temperature (long story, the CPU fan is hard-wired to 6v & there is no temperature feedback...) but it should be able to find a couple of other useful temperatures.The same PC in XP uses Speedfan which indicates plausible temperatures for (I think) Case & Hard Drive. (Temp2 & HD0 in the attached)I wonder what I have failed to do & why I cannot see Case or HD temps in Ubuntu?In terminal, I ran sensors-detect which went OK until the last bit where it said:

"~$ /etc/init.d/module-init-tools start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service module-init-tools start...etc" I don't follow that, but I have checked that I have it87 in both /etc/modules & in lib/modules/.../hwmon

View 3 Replies View Related

Fedora Hardware :: Fc13 Sensors Not Working?

Oct 14, 2010

FC13 sensors not workingsensors-detect gives:Some south bridges, CPUs or memory controllers contain embedded sensors.Do you want to scan for them? This is totally safe. (YES/no):

Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No

[code]....

View 2 Replies View Related

OpenSUSE Hardware :: Sensors-AMD CPU Temperature Monitoring

Dec 4, 2010

I have just recently installed opensuse 11.3 on my computer. I have switched from Ubuntu and have been trying to get things configured similar to what it was. One problem I have encountered is with installing sensors and k10temp, the module needed to monitor my CPU temp. within Linux. I have an AMD sempron and a biostar mcp6p m2+ motherboard. I have installed package "sensors" and have run the sensors-detect and it went through and found k10temp that I would need to load within the kernel for this to work properly. I had this working in Ubuntu, but not sure how to do it in openSuse. I have tried compiling the k10temp source, running modprobe k10temp and received no output, and looked around the conf files, but not sure how to go about doing it?

View 2 Replies View Related

Ubuntu :: Sensors Not Working & CPU Speed Control?

Feb 21, 2010

I installed Karmic 64-bit on a new Phenom X4 Quad-Core PC. I've replaced the stock CPU cooler with a Cooler Master Hyper TX3, enabled all fan control settings in the BIOS, switched their profiles on silent, enabled the Cool n' Quiet option as well but my CPU fan is still noisy and seem to be running up to the max number of RPM, thus ignoring BIOS specifications. Besides this I can tell there is something wrong with it since even the CPU is on idle or with just the regular browsing, media player operations, PC sometimes freezes or is automatically rebooted .

I installed lm-sensors and went through all the sensors-detect operations (output attached to this post) but it doesn't show anything else but the CPU and HDD temperature which is always 40 Celsius degrees.

View 7 Replies View Related

Ubuntu :: Lm-sensors Doesn't Show Fan Speeds

Mar 12, 2010

I'm running ubuntu 9.10 64 bit on a Dell Latitude E6400 with the following configuration:

Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz, 3MB L2 Cache 1066 MHz
Intel Graphics Media Accelerator x4500HD
4GB RAM
250 GB Hard Drive SATA 7200RPM

I'm experiencing overheating problems, after just 15-20 minutes of minimal use (surfing the internet, not even watching flash vids or any other vids). The same laptop under Windows 7 64 bit stayed really cool.

I've read several posts here and followed this manual: [URL] to try to control the fans (I only installed the lm-sensors and ran the sensors command, I didn't do anything beyond that). Specifically what I did was install lm-sensors (via apt-get), ran sensors-detect which advised me to add the coretemp module to /etc/modules, which I did.

However when running sensors the only information I get is the overall temperature and the temperature of each of the cores.

why I'm not getting fan speed info when running sensors? Also is there a way to find out if more modules needs to be added to /etc/modules?

View 9 Replies View Related







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