summaryrefslogtreecommitdiff
path: root/serial.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix up fusercount() to work correctly.Eric S. Raymond2011-08-231-6/+4
|
* Now that fusecount() is working, it turns out to be dangerous. Disable it...Eric S. Raymond2011-08-231-5/+5
| | | | ...until we figure out what's going on. All regression tests pass.
* Fix some coding errors in fusercount().Eric S. Raymond2011-08-231-2/+3
|
* Add fixed_stop_bits option.Eric S. Raymond2011-06-221-1/+10
|
* Improve the code for making sensor data and command strings visible...Eric S. Raymond2011-06-171-2/+2
| | | | | ...and remove some const declarations that could have spelled trouble in the future.
* Remove gpsd_hexdump_wrapper() from everything outside the packet sniffer.Eric S. Raymond2011-06-171-3/+4
|
* Code slimming.Eric S. Raymond2011-06-111-4/+1
|
* Fix the minimal build.Eric S. Raymond2011-03-291-1/+1
|
* Squeeze out some more code in the fixed-port-speed case.Eric S. Raymond2011-03-291-0/+10
|
* Documentation update. All regression tests pass.Eric S. Raymond2011-03-241-1/+1
|
* Try to move NTP link activation and deactivation up to the disparcher layer.Eric S. Raymond2011-03-241-16/+0
|
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-1/+1
| | | | All regression tests pass, splint and cppcheck pass.
* Remove pass_rtcm(),Eric S. Raymond2011-02-271-1/+1
| | | | | Replace it wuth what it calls, gpsd_write(). Requiresd only a prototype tweak and some casts, no logic changes. All regression tests pass.
* Split an excessively long function. No logic changes. All regression tests pass.Eric S. Raymond2011-02-241-62/+2
|
* Abolish device->is_serial. Replaced by device->servicetype.Eric S. Raymond2011-02-241-3/+0
|
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-0/+3
| | | | | | | | | This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
* Refactor device opening. No logic changes. All regression tests pass.Eric S. Raymond2011-02-231-0/+61
|
* More deheader testing. All regressions pass, codebase splints clean.Eric S. Raymond2011-01-131-3/+3
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2011-01-121-1/+1
|
* Re-commit the new device locking, previously removed by a finger error.Eric S. Raymond2011-01-111-23/+34
|
* Revert "Try a tighter locking regime for serial devices."Chris Kuethe2011-01-111-39/+26
| | | | This reverts commit a7432bdc58d33f372c01939c9bcc9698bbd99c1c.
* Try a tighter locking regime for serial devices.Eric S. Raymond2011-01-111-26/+39
|
* It really needs to be %04x in JSON escaping, otherwise we don't get fixed width.Eric S. Raymond2011-01-111-4/+7
|
* Comment typo fix.Eric S. Raymond2011-01-101-1/+1
|
* Block other processes from using our serial devices while we have them open.Eric S. Raymond2011-01-101-1/+15
| | | | | Also, make a multiple-open exception for ptys. Otherwise our regression-test framework goes bust.
* Under Linux, use /proc to avoid opening serial devices already open.Eric S. Raymond2011-01-101-0/+48
| | | | | | | This will help prevent gpsd from consuming data from devices such as USB modems that happen to look like GPSes because they use a USB-to-serial adapter thar we have whitelisted. Relies on there being a /proc filesystem with Linux-like semantics.
* We longer send wakeup probes to USB devices.Eric S. Raymond2011-01-091-6/+8
| | | | | | | The two known cases where wakeup probes are indispencible (TNT and AC12) are serial devices. Therefore, by simply suppressing wakeup emission on USB sources, we avoid both spamming USB devices and requiring special setup with gpsctl.
* Move the speed warning so each autobaud test does not give the warning.Gary E. Miller2010-12-291-3/+0
|
* Add generic warning on slow link speed.Gary E. Miller2010-12-291-0/+3
| | | | | | Some people assume a USB GPS is fast, and it may really only be running at 4800 bps. This probably accounts for reports of gpsd reporting slow clocks.
* let character devices default to RS232Chris Kuethe2010-12-241-1/+1
|
* We were checking for sys/modem.h and never needed it.Eric S. Raymond2010-12-141-3/+0
|
* Still more simplification of configuration and header handling.Eric S. Raymond2010-12-141-2/+0
|
* More header rationalizations,Eric S. Raymond2010-12-141-8/+4
|
* Code splints clean except for endiabbess stuff in driver_garmin.c.Eric S. Raymond2010-12-081-0/+4
|
* over-zealous header removalChris Kuethe2010-12-021-0/+4
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-5/+0
|
* Bug #17637: /dev/ttySAC1 is always opened in read-only modeTimo Juhani Lindfors2010-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More info: 1) /dev/ttySAC1 is a serial port used on samsung s3c2440 (e.g. openmoko freerunner): $ stat /dev/ttySAC1 File: `/dev/ttySAC1' Size: 0 Blocks: 0 IO Block: 4096 character special file Device: ch/12d Inode: 161 Links: 1 Device type: cc,41 Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 20/ dialout) Access: 2010-10-19 01:23:13.893489000 +0300 Modify: 2010-10-18 20:21:22.089934000 +0300 Change: 2010-10-18 20:21:22.089934000 +0300 2) I think the problem is in gpsd_classify(). It assumes that all serial ports have major number of 4. It even links to ftp://ftp.kernel.org/pub/linux/docs/device-list/devices-2.6+.txt as a reference. However, that file nowadays lists also 204 char Low-density serial ports 0 = /dev/ttyLU0 LinkUp Systems L72xx UART - port 0 1 = /dev/ttyLU1 LinkUp Systems L72xx UART - port 1 2 = /dev/ttyLU2 LinkUp Systems L72xx UART - port 2 3 = /dev/ttyLU3 LinkUp Systems L72xx UART - port 3 4 = /dev/ttyFB0 Intel Footbridge (ARM) 5 = /dev/ttySA0 StrongARM builtin serial port 0 6 = /dev/ttySA1 StrongARM builtin serial port 1 ... The patch adds 204 to the list of recognized major numbers. Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Fixes for previous Bluetooth code.Alban Browaeys2010-07-021-2/+3
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Merge experimental BluZ support. Code is not yet enabled or tested.Eric S. Raymond2010-06-181-11/+49
| | | | All regression tests pass, codebase splints clean.
* Recover from zero-length reads.Eric S. Raymond2010-06-141-0/+2
| | | | | | | | | Rather than deactivating a device the first time it gets a zero-length read, temporarily suppress waiting on it in the main select call and set a timeout after which it will be un-suppressed. A zero-length read after unsuppression will trigger deactivation. All regression tests pass.
* A long step towards reading UDP packets.Eric S. Raymond2010-04-281-1/+2
|
* Log NTP link activation after, not before.Eric S. Raymond2010-04-251-2/+3
|
* Don't waste time in the hunt loop if the supposed GPS fd is not actually a tty.Eric S. Raymond2010-04-151-0/+4
|
* Reindented core library. All regressiopn tests pass.Eric S. Raymond2010-04-141-96/+120
|
* Under Linux, gpsd now classifies its input devices at open() time.Eric S. Raymond2010-04-131-4/+41
| | | | | | | | | | | | | | | | | We use stat(2) to distinguish among regular files, character devices, and sockets. We then use Linux major device numbers to further distinguish between RS232, pseudo-tty, and USB-serial devices. For devs on non-Linux systems, the first tier of tests is POSIX. All serial devices will return type 'source_unknown' for you. This may never matter; the serial-device source types aren't yet distinguished anywhere - there's an existing, separate is_serial flag. The planned use is to guard the check for the Garmin USB Linux kernel module. Also the new function is a good place to isolate OS-dependent code in case the Windows port ever happens. All regression tests pass.
* Add all our info on the spin bug to TODO, and instrument all opens/closes.Eric S. Raymond2010-04-061-0/+4
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+1
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-1/+5
|
* David Ludlow's housekeeping and type-cleanup patch.Eric S. Raymond2010-01-021-1/+1
| | | | All regression tests pass,
* Fixed JSON dumping of AIS type 15.Eric S. Raymond2009-12-071-0/+1
| | | | | | | Arranged to suppress dumping of device serial parameters when its a TCP/IP data source like an AIS feed. All regression tests pass.