Support for baudrate > 115200

Bug #434529 reported by JohnMayer on 2009-09-22
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GTKTerm
Unknown
Unknown
gtkterm (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gtkterm

gtkterm does not support configuring a serial port with a baudrate > 115200

Here is a simple patch to add support for baudrate 230400

diff -u orig/src/serie.c modif/src/serie.c
--- orig/src/serie.c 2005-09-22 21:49:38.000000000 +0200
+++ modif/src/serie.c 2009-09-22 09:26:23.000000000 +0200
@@ -253,6 +253,9 @@
     case 115200:
       termios_p.c_cflag = B115200;
       break;
+ case 230400:
+ termios_p.c_cflag = B230400;
+ break;
     }
   switch(config.bits)
     {

 diff -u orig/src/config.c modif/src/config.c
--- orig/src/config.c 2005-11-14 20:43:56.000000000 +0100
+++ modif/src/config.c 2009-09-22 09:27:42.000000000 +0200
@@ -216,6 +216,7 @@
   liste = g_list_append(liste, "38400");
   liste = g_list_append(liste, "57600");
   liste = g_list_append(liste, "115200");
+ liste = g_list_append(liste, "230400");
   gtk_combo_set_popdown_strings(GTK_COMBO(Combo), liste);
   gtk_combo_set_value_in_list(GTK_COMBO(Combo), TRUE, FALSE);

@@ -936,6 +937,7 @@
     case 38400:
     case 57600:
     case 115200:
+ case 230400:
       break;

     default:

David Huggins-Daines (dhuggins) wrote :

I'd like 460800 as well please :)

Ok, here's a patch for speed up to 1000000

Unfortunately I can't test it because I don't have any equipement running at that speed

tags: added: patch patch-forwarded-upstream

I'm running at 9600 bauds and that's okay. Works well at 1 character per second. Full speed at 9600 and chunks of the data stream are missing. Regards Ian.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtkterm (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.