[Dsctl-devel] SF.net SVN: dsctl: [139] src
Status: Alpha
Brought to you by:
roger-linux
|
From: <rog...@us...> - 2007-11-06 01:37:23
|
Revision: 139
http://dsctl.svn.sourceforge.net/dsctl/?rev=139&view=rev
Author: roger-linux
Date: 2007-11-05 17:37:19 -0800 (Mon, 05 Nov 2007)
Log Message:
-----------
commands.h - Corrected spacing/syntax
config.h - Removed sctl related models
firmware-work.c - ? Changed something, probably syntax related.
Modified Paths:
--------------
firmware-work.c
src/commands.h
src/config.h
Modified: firmware-work.c
===================================================================
--- firmware-work.c 2007-08-07 02:25:29 UTC (rev 138)
+++ firmware-work.c 2007-11-06 01:37:19 UTC (rev 139)
@@ -1,3 +1,5 @@
+// Remember! I have a timeout set in serial.c to timeout after a few seconds of serial inactivity (giving the user the option to simply ctrl-c the dsctl process instead of being locked into using kill). The exceptions are while loading or dumping when I've increased this to ~20 seconds. For 115200bps, this seems adequate. However, if you're using 9600bps, the dump/load will incremently increase, hence, an agorythm needs to be implemented to account for the different used connection speeds for the serial port. And, with the "firmware load", loading can take up to 15 minutes. So, account for this when implementing the below functions.
+
/***********************************************************************
* Firmware Mode Get Model Info
***********************************************************************/
Modified: src/commands.h
===================================================================
--- src/commands.h 2007-08-07 02:25:29 UTC (rev 138)
+++ src/commands.h 2007-11-06 01:37:19 UTC (rev 139)
@@ -39,7 +39,7 @@
/***********************************************************************
* Function Declarations
***********************************************************************/
-/* TODO: Copy code from commands.c / Implement below functions */
+/* TODO: Finish implementing commented-out functions below */
void get_current_tgid_status(int fd);
int push_key(int fd, char key_code, char key_mode);
@@ -51,35 +51,33 @@
int enter_prg_mode(int fd);
int exit_prg_mode(int fd);
-int get_backlight(int fd);
+int get_backlight(int fd);
/*int set_backlight(int fd, char **parsed_line);*/
+
int clear_memory(int fd);
-int get_key_beep(int fd);
+int get_key_beep(int fd);
/*int set_key_beep(int fd, char **parsed_line);*/
-int get_opening_message(int fd);
+int get_opening_message(int fd);
/*int set_opening_message(int fd, char **parsed_line);*/
-int get_priority_mode(int fd);
+int get_priority_mode(int fd);
/*int set_priority_mode(int fd, char **parsed_line);*/
int get_auto_gain_control(int fd);
-
/*int set_auto_gain_control(int fd, char **parsed_line);*/
+
/* Scan Settings - Goes in order we get/set - Calls Group Index only once instead of twice */
int get_system_count(int fd);
int get_system_index_head(int fd);
int get_system_index_tail(int fd);
int get_system_quick_lockout(int fd);
-
/*int set_system_quick_lockout(int fd, char **parsed_line);*/
int get_group_quick_lockout(int fd, int system_index);
-
/*int set_group_quick_lockout(int fd, char **parsed_line);*/
int create_system(int fd, char *system_type);
-
/*int delete_system(int fd);*/
int get_system_info(int fd, int system_index, char *system_type,
char *channel_group_head);
@@ -88,13 +86,11 @@
int set_trunk_info(int fd, int system_index, char **parsed_line);
int append_channel_group(int fd, int system_index);
int append_tgid_group(int fd, int system_index);
-
- /*int delete_group(int fd, group_index); *//* Use same function for delete_site */
+/*int delete_group(int fd, group_index); *//* Use same function for delete_site */
int get_group_info(int fd, int group_index, char *channel_index);
int set_group_info(int fd, int group_index, char **parsed_line);
int append_channel_freq(int fd, int group_index); /* Use same function for append_trunk_freq */
int append_tgid(int fd, int group_index);
-
/*int delete_channel(int fd, channel_index);*/
int get_channel_info(int fd, int channel_index);
int set_channel_info(int fd, int channel_index, char **parsed_line);
@@ -110,9 +106,9 @@
int set_apco25_band_plan(int fd, int site_index, char **parsed_line);
int get_trunk_freq_info(int fd, int channel_index);
int set_trunk_freq_info(int fd, int channel_index, char **parsed_line);
-
/* End Scan Settings Commands */
+
/*int get_lockout_tgid(int fd, int system_index);*/
/*int get_search_lockout_tgid(int fd, int system_index);*/
/*int unlock_tgid(int fd, int system_index);
@@ -122,72 +118,56 @@
int get_remains_memory_block(int fd);
int get_memory_used(int fd);
int loc_alert_system_index_head(int fd, char *loc_alert_system_type);
-
/*int get_loc_alert_system_index_tail(int fd, char *loc_alert_system_type);
int create_loc_alert_system(int fd, char *loc_alert_system_type);
int delete_loc_alert_system(int loc_alert_system_index);*/
int get_loc_alert_system_info(int fd, int loc_alert_system_index);
-
/*int set_loc_alert_system_info(int fd, int loc_alert_system_index, char**parsed_line);*/
int get_srch_cc_settings(int fd);
-
/*int set_srch_cc_settings(int fd, char **parsed_line);*/
int get_bcast_screen_band_settings(int fd);
-
/*int set_bcast_screen_band_settings(int fd, int bcast_screen_band_settings_index, char **parsed_line);*/
int get_search_key_settings(int fd);
-
/*int set_search_key_settings(int fd, char **parsed_line); */
int get_global_lockout_freq(int fd);
-
/* int unlock_global_lockout_freq(int fd, double global_lockout_freq);
int lock_out_freq(int fd, double frequency);*/
int get_close_call_settings(int fd);
-
/*int set_close_call_settings(int fd, char **parsed_line);*/
int get_service_search_settings(int fd);
-
/*int set_service_search_settings(int fd, int search_index, char **parsed_line);*/
int get_custom_search_group(int fd);
-
/*int set_custom_search_group(int fd, char **parsed_line);*/
int get_custom_search_settings(int fd);
-
/*int set_custom_search_settings(int fd, int search_index, char **parsed_line);*/
int get_weather_settings(int fd);
-
/*int set_weather_setting(int fd, char **parsed_line);*/
int get_same_group_settings(int fd);
-
/*int set_same_group_settings(int fd, int same_index, char **parsed_line);*/
int get_tone_out_settings(int fd);
-
/*int set_tone_out_settings(int fd, int tone_out_index, char **parsed_line);*/
int get_lcd_contrast_settings(int fd);
-
/*int set_lcd_contrast_settings(int fd, char **parsed_line);*/
int get_lcd_upside_down_settings(int fd);
-
/*int set_lcd_upside_down_settings(int fd, char **parsed_line);*/
int get_scanner_option_settings(int fd);
-
/*int set_scanner_option_settings(int fd, char **parsed_line);
int get_volume_level_settings(int fd);
int set_volume_level_settings(int fd, int volume_level);
int get_squelch_level_settings(int fd);
int set_squelch_level_settings(int fd, int squelch_level);*/
int get_apco_settings(int fd);
-
/*int set_apco_settings(int fd, char **parsed_line);*/
+
/* GPS Related -- I don't have a GPS for this scanner */
int get_gps_display_option(int fd);
-
/*int set_gps_display_option(int fd, char **parsed_line);*/
int get_gps_gga_data(int fd); /* TODO: Untested! */
int get_gps_rmc_data(int fd); /* TODO: Untested! */
int get_window_voltage(int fd);
+
/* Undocumented Uniden Firmware Mode Commands */
int fw_mode_model_info(int fd, char *fwm_model);
int fw_mode_set_speed(int fd, char *fwm_speed);
@@ -196,6 +176,7 @@
int fw_mode_scb(int fd, int scb_value);
int fw_mode_program(int fd);
+
/* Elongated Functions - Using above lower-level scanner command functions */
int dump(int fd, FILE *outfile);
int load_firmware(int fd, FILE *infile);
Modified: src/config.h
===================================================================
--- src/config.h 2007-08-07 02:25:29 UTC (rev 138)
+++ src/config.h 2007-11-06 01:37:19 UTC (rev 139)
@@ -36,10 +36,6 @@
/* the models we know about */
#define MODELUNKNOWN -1
-//#define BC895XLT 0
-//#define BC245XLT 1
-//#define BC780XLT 2
-//#define PRO2052 3
#define BCD396T 0
#define BCD996T 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|