Ticket #1953 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

tty setup for gps at startup -- /etc/init.d/gps-hardware

Reported by: h.koenig Owned by: Nytowl
Priority: normal Milestone:
Component: Distro Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

1) bug & fix:
everyone has trouble with the output of "cat /dev/ttySAC1" after 1st startup,
some not so clever apps might fail.
why not set reasonable tty setting at boot time ?

2) further improvement/idea:
what about using a generic /dev/symlink like /dev/gps or similar by default ?
this help

  • once hardware might change and /dev/ttySAC1 is spelled differently in GTA3++
  • it's a single point where I can switch all gps apps/configs to use e.g.

a BT gps receiver with "ln -sf rfcomm0 /dev/gps"

right now I'm using this /etc/init.d/gps-hardware


# This is a dummy file. Some machines use it to bring up integrated GPS
# devices on demand.
ln -sf ttySAC1 /dev/gps
stty -echo -icrnl < /dev/gps


Change History

comment:1 Changed 5 years ago by john_lee

  • Owner changed from openmoko-devel to julian_chu
  • Type changed from defect to enhancement
  • HasPatchForReview unset
  • Component changed from unknown to Distro

comment:2 in reply to: ↑ description Changed 4 years ago by h.koenig

Replying to h.koenig (4 months ago!!!):

1) bug & fix:
everyone has trouble with the output of "cat /dev/ttySAC1" after 1st startup,
some not so clever apps might fail.
why not set reasonable tty setting at boot time ?

Om2008.12 still starts up with echo enabled on /dev/ttySAC1 :-(

openmoko-agpsui uses ~50% cpu time trying to parse the garbled NMEA stream due to the replies of the echo'ed nmea records.

_please_ switch off at least echo (better "icrnl" too) :

right now I'm using this /etc/init.d/gps-hardware


# This is a dummy file. Some machines use it to bring up integrated GPS
# devices on demand.
ln -sf ttySAC1 /dev/gps
stty -echo -icrnl < /dev/gps


thanks!

comment:3 Changed 4 years ago by roh

  • Owner changed from julian_chu to Nytowl

maintainer change

Note: See TracTickets for help on using tickets.