ts-7000
[Top] [All Lists]

[ts-7000] Cron job corrupting serial data received

To:
Subject: [ts-7000] Cron job corrupting serial data received
From: Steve Weigold <>
Date: Mon, 03 May 2010 18:18:36 -0400




Good Evening Everyone,

I have an application running continuously on a TS-7200 which collects data received on /dev/ttyAM1, parses it to a small degree and stores it to a MySQL database on the device.  I have the communications port set up as non-blocking, and just poll the port with "read" to retrieve data.  Under normal circumstances, everything works fine.

I have another application which is called as a cron job every five minutes.  That application queries the data from the local database and synchronizes it with a database on a remote MySQL server.  The sync application outputs only to a file and to the remote database.  It currently has no interaction between the first app, or any of the comm ports.

The problem I'm finding is that every five minutes when the cron job runs, something is causing the incoming data to essentially stop.  Nothing appears to recorded by the first application during the time that the sync application is busy.

To the best of my ability to search, the comm ports are set correctly, and as I said, the data collection application runs fine by itself.

Can anyone make some suggestions on where to go from here?  Even if the sync application caused the collection app to pause, I would have expected the data to accumulate in the serial port buffer and be available when the collection app resumed, but it does not.  It just seems to vanish.

I'd appreciate any suggestions.

Steve




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU