gps.conf need original sgs2 - Galaxy S II Q&A, Help & Troubleshooting

Does anyone have a clean /etc/gps.conf , especially from kj3 , uk/vod -though expect same except for servers across all versions.
Can't get a gps fix .. Kj3 stock/speedmod/siyah though I have previously modified this file...

NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Original gps.conf
jje

Thanks.will try.
Currently can't get a lock even with 10 or 11 data visible.changed modem from ki4 to ki3 but made no difference.

Another one is the sirfgps file might be worth changing . There is a post around somewhere but this is what its changed to .
#CSR SiRF plc
#PROJECT_NAME : white Space is not allowed
#UART_DRIVER : Uart Driver Path
#RESET_GPIO : Reset GPIO Driver Path
#ONOFF_GPIO : OnOff GPIO Driver Path
#EXTERNAL_LNA : 1 - use External LNA, 0 - use Internal LNA only
#REF_CLOCK_26MHZ: 1 - use 26MHz TCXO, 0 - use 16.369MHz TCXO
#UART_BAUD_RATE : 0 - 115200bps 1 - 230400, 2 - 460800, 3 - 57600
#FREQUENCY_AIDING : 0 - Disable, 1 - Enable
#SENSOR_AIDING : 0 - Disable, 1 - Enable
#SET_ID_IMSI : 1 - Use IMSI for SET ID, 0 - Use MSISDN for SET ID, especially for Japan Network Operators
#DEBUGGING_FILES : 0 - no log file, 1 - log files enabled
#SSL_ENABLED : 0 - SSL Disabled, 1 - SSL Enabled
#CERTI_VERSION : 0 - TLSv1 , 1 - SSLv3 , 2 - SSLv23
#CP_RESPONSETIME : 0 - no priority, 1 - resposne priority time, 2 - resposne priority position ,3 - resposne priority use entire response time
#REAIDING=20
#CONTROL_PLANE : 1 - CP Enabled, 0 - CP Disabled, for MP3 player or PND
#ATT_NETWORK_OPERATOR : 1 - for AT&T, 0 - for other network operator
PROJECT=SAMSUNG_S5PC210
UART_DRIVER=/dev/s3c2410_serial1
RESET_GPIO=/sys/devices/virtual/sec/gps/GPS_nRST/value
ONOFF_GPIO=/sys/devices/virtual/sec/gps/GPS_PWR_EN/value
EXTERNAL_LNA=1
REF_CLOCK_26MHZ=1
UART_BAUD_RATE=2
FREQUENCY_AIDING=1
SENSOR_AIDING=1
SET_ID_IMSI=1
DEBUGGING_FILES=0
SSL_ENABLED=0
CERTI_VERSION=0
CP_RESPONSETIME=2
CONTROL_PLANE=1
ATT_NETWORK_OPERATOR=0
EMC_ENABLE=1
LOG_PATH=/sdcard/gps/csr

Thanks.couldn't get it working so reflashed same rom (voda uk kj3) (no wipe) and rerooted with speedmod.
Gps fix fine quick.
Now back to ki1 modem (as shipped), but it was probably a bad config somewhere
Thanks for the info

Related

[script] reliable interface stats

[script] reliable interface stats
pro: reliable, works on any Linux; low battery consumption; runs only when necessary
contra: no GUI
prerequisites: script manager able to trigger on network changes
root is not needed, because the script uses the readable-for-all /proc/net/dev interface to gather statistics.
My problem was that I could not find any app that would give me the megabytes sent from/to the device. They would either ignore GPRS, WiFi or count from reboot to reboot, display stupid ads or cost even money without delivering. I'm on a data flatrate with throttling from 200MB up, and I only want to know how much I already "spent".
The following script should run on network changes, but it can be run at any time. You get more data entries in the log files for the various active interfaces when running it more often.
EDIT: it turns out the "network change" event works perfectly for interface wlan0, but not for pdp0, which happens to be the GPRS/G2/G3/G4 packet interface. Maybe "Tasker" does better than "Script Manager" with this, try and find out. What will always work is manual mode: after using an interface, run the script. This will enter the numbers from any interface that traffic into the respective log.
The script is run with zero or one argument. If given, it can be the name of an interface or the string "all" to get just a readout of the current counters of all interfaces that had traffic without logging anything.
The output is lines with bytes, data packets, errornous and dropped packets for "rx" (received) and "tx" (transmitted) for all or the selected interfaces. Without arguments all active interfaces are logged to separate files in /sdcard/. If you want to change this directory or the names or the date format, well, it should be easy to adapt.
Note that this first script does only data gathering as to the byte counts and it must run on network events. See below for the script(s) that do evaluation according to date to find out how much to go until throttling.
Code:
#!/system/bin/sh
want_if="${1:-*}"
all=""
case "-${want_if}" in
-all)
want_if="*"; all=all;
;;
esac
log_prefix="/mnt/sdcard/interface-stats"
now="$(date '+%d.%m.%y-%H:%M:%S')"
# rx: bytes packets errs drop fifo frame compressed multicast
# tx: bytes packets errs drop fifo colls carrier compressed
# lo: 4944 74 0 0 0 0 0 0 4944 74 0 0 0 0 0 0
# wlan0: 42447725 41554 302 0 0 0 0 0 3280981 33753 0 0 0 0 0 0
while read intf rb rp re rd x x x x tb tp te td rest
do
case "-${intf}" in
-${want_if:-*}:)
case "${rb}--${tb}" in
0--0) continue;;
esac
stats="rx: $rb $rp $re $rd tx: $tb $tp $te $td"
intf_="${intf%:}"
echo "${intf} ${stats}"
[ -z "${all}" ] &&
echo "${now} ${stats}" >> "${log_prefix}-${intf_}.txt"
;;
esac
done < /proc/net/dev
exit 0
Here's the script to output the megabytes. It gets zero, one or two arguments, the first being a date pattern that needs to match the dates in the log file, the second the name of said logg.
An optional third argument, if given, gives debug output. Use only if the number doesn't look plausible.
It doesn't need any special privileges and can be run anytime.
If less than one megabyte has been hit so far, then the output is the number of bytes. Due to limitations of "awk" there can still be decimals in the output!
Code:
# /home/ino/interface-stats.sh _date: 20120225-2103_
# vim: set filetype=sh ts=4:
# -*- mode: sh; -*-
#
# <url:man:1 awk>
# sample:
#
# 25.02.12-02:28:28 rx: 182909647 374371 462 0 tx: 681742703 542899 0 0
# 25.02.12-12:15:00 rx: 3 374464 494 0 tx: 5 542974 0 0
#
# at around noon the device was rebooted, so the stats start at low
# values.
#
# algorithm:
#
# initialize old-accumulator and offset to zero.
#
# since received and transmitted bytes are accumulated by the kernel,
# the script has to just store the sum of the received and transmitted
# bytes into an accumulator, unless the current value is less than the
# running count. this happens after a reboot. so store this first low
# value into $offset, store the old accumulator and keep the running game
# until either the next reboot or EOF. now
# accumulator = old-accumulator + accumulator - offset.
awk_prog='
BEGIN {
debug = debug > 0
accu=0
accu_old=0
offset=0
accu_sum=0
# megabytes
mb_scaler=1024*1024
# field definitions
rx_bytes=3
rx_packets=4
rx_errors=5
rx_dropped=6
tx_bytes=8
tx_packets=9
tx_errors=10
tx_dropped=11
# date pattern
# 25.02.12-12:15:00 rx: 3 374464 494 0 tx: 5 542974 0 0
pat_date_dflt = "[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9][0-9]"
pat_date = length(pat_date) == 0 ? pat_date_dflt : pat_date
}
function dbg(x) {
if (debug > 0) print("debug: " x);
}
# no particular validity check: if there are 11 fields and the first one
# matches the date the user is after, we will use the record.
(NF == 11) && ($1 ~ pat_date) {
dbg("select line: " $0)
accu_sum = $rx_bytes + $tx_bytes
if (accu_sum < accu) {
dbg("break: accu_sum=" accu_sum "; accu_old=" accu_old "; accu=" accu "; offset=" offset);
accu = accu_old + accu - offset
accu_old = accu
offset = accu_sum
accu = accu_sum
} else {
accu = accu_sum
}
}
END {
dbg("eof: accu_sum=" accu_sum "; accu_old=" accu_old "; accu=" accu "; offset=" offset);
accu = accu_old + accu - offset
if (accu > mb_scaler) accu = (accu / mb_scaler) "MB"
print(accu)
}
'
debug=0
log_prefix="/mnt/sdcard/interface-stats"
dates="${1:-.}"
want_if="${2:-wlan0}"
debug="${3+1}"
input="${log_prefix}-${want_if}.txt"
awk -v pat_date="${dates}" -v debug="${debug}" "${awk_prog}" "${input}"
And finally this one is for quick inspection of a logg. Gets the name of an interface as argument if needed. Again it needs no privileges and is appropriate for use as a SMwidget.
Code:
#!/system/bin/sh
want_if="${1:-wlan0}"
log_prefix="/mnt/sdcard/interface-stats"
logg="${log_prefix}-${want_if}.txt"
[ -r "${logg}" ] &&
while read tim rx rb rp re rd tx tb tp te td rest
do
case "${rb}--${tb}" in
0--0) continue;;
esac
stats="rx: $rb $rp $re $rd tx: $tb $tp $te $td"
echo "${tim} ${stats}"
done < "${logg}"
exit 0
Does somebody know what tags to brace code with in order to keep formatting intact? To me all my stuff has no indentation and lines seem to break at other points than just and only newlines!
EDIT: just found out that there's no problem in the web view, it's just the "forum runner" that can't render what the "\[ code \]" tag generates.
Well, as an alternative, what's the least-hassle file dump?

[Q] tun.ko for Samsung i9008

Hi, guys
I have a Samsung i9008 which is specific for China Mobile 3G TD-SCDMA.
Kernel version: 2.6.29-zeus1
I have download samsung i9008 resource code and compiled a tun.ko file.
Installed successfully without any errors (insmod).
# insmod /system/tun.ko
insmod: setup_module '/system/tun.ko'
# dmesg | grep tun
<6>[ 7.047790] IPv4 over IPv4 tunneling driver
<6>[ 7.066741] IPv6 over IPv4 tunneling driver
<6>[ 174.259918] tun: Universal TUN/TAP device driver, 1.6
<6>[ 174.266601] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
# lsmod
tun 11036 0 - Live 0xbf283000g_serial_softmodem 18504 0 - Live 0xbf279000
tiwlan_drv 823192 0 - Live 0xbf1ab000
omaplfb 16584 0 - Live 0xbf1a1000
pvrsrvkm 149188 43 omaplfb, Live 0xbf177000
modem_relay 71096 0 - Live 0xbf160000
vibrator 4104 0 - Live 0xbf159000
gsd4t 6900 0 - Live 0xbf152000
accel 18012 1 - Live 0xbf148000
PL_sensor 20276 0 - Live 0xbf13e000
compass 16848 1 - Live 0xbf134000
samsung_battery 24823 0 - Live 0xbf128000
dpram_flashless 183768 4 - Live 0xbf0f6000
param 17376 0 - Live 0xbf0ef000
rfs_fat 233792 6 - Live 0xbf0b0000 (P)
rfs_glue 75052 1 rfs_fat, Live 0xbf098000 (P)
fsr_stl 250268 6 - Live 0xbf055000 (P)
fsr 324408 4 dpram_flashless,param,fsr_stl, Live 0xbf000000 (P)
I have installed BusyBox. I have tried many version of BusyBox.
But when I connect in VPNC or run vpnc's script, the phone reboot.
I think the procesure of setup tunnel cause phone crash.
I can't find the solution to resolve.

[Q] VPN tunnel crash the phone

Hi, guys
I have a Samsung i9008 which is specific for China Mobile 3G TD-SCDMA.
OS: OMS 2.0 (from Android 2.1?)
Kernel version: 2.6.29-zeus1
I have download Samsung i9008 resource code and compiled a tun.ko file.
Installed successfully without any errors (insmod).
# insmod /system/tun.ko
insmod: setup_module '/system/tun.ko'
# dmesg | grep tun
<6>[ 7.047790] IPv4 over IPv4 tunneling driver
<6>[ 7.066741] IPv6 over IPv4 tunneling driver
<6>[ 174.259918] tun: Universal TUN/TAP device driver, 1.6
<6>[ 174.266601] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
# lsmod
tun 11036 0 - Live 0xbf283000
g_serial_softmodem 18504 0 - Live 0xbf279000
tiwlan_drv 823192 0 - Live 0xbf1ab000
omaplfb 16584 0 - Live 0xbf1a1000
pvrsrvkm 149188 43 omaplfb, Live 0xbf177000
modem_relay 71096 0 - Live 0xbf160000
vibrator 4104 0 - Live 0xbf159000
gsd4t 6900 0 - Live 0xbf152000
accel 18012 1 - Live 0xbf148000
PL_sensor 20276 0 - Live 0xbf13e000
compass 16848 1 - Live 0xbf134000
samsung_battery 24823 0 - Live 0xbf128000
dpram_flashless 183768 4 - Live 0xbf0f6000
param 17376 0 - Live 0xbf0ef000
rfs_fat 233792 6 - Live 0xbf0b0000 (P)
rfs_glue 75052 1 rfs_fat, Live 0xbf098000 (P)
fsr_stl 250268 6 - Live 0xbf055000 (P)
fsr 324408 4 dpram_flashless,param,fsr_stl, Live 0xbf000000 (P)
I have installed BusyBox and VPNC. I have tried many version of BusyBox.
But when I connect in VPNC or run vpnc's script, the phone reboot.
I think the procesure of setup tunnel cause phone crash.
I changed some parameters in .config and re-compiled tun.ko. The phone reboot as before.
I can't find the solution to resolve.

[Q]Keylayout Problem

Hi
I just bought a samsung bkc 1B1 bluetooth keyboard, and I'm trying to use it with my galaxy tab 2 10.1 (p5110) with Cyanogenmod 10.1.1.
My problem is that is recognized as QWERTY keyboard, which it's not. So I decide to write a custom keylayout for the keyboard. First I searched for the vendor and product id :
Code:
$ : cat /proc/bus/input/devices
I : Bus=0005 Vendor=04e8 Product=7021 Version=0001
N : Name="Broadcom Bluetooth HID"
P : Phys=
S : Sysfs=/devices/virtual/misc/uhid/input9
U : Uniq=
H : Handler=sysrq kbd event8
B : PROP=0
B : EV=2001b
B : KEY=1f 0 0 0 0 0 0 0 0 0 0 10000 0 0 0 10013 2000007 ff9f307a c9405fff febeffdf ffafffff ffffffff fffffffe
B : ABS=f00 0
B : MSC=10
B : LED=1f
I duplicated Generic.kl and rename the copy "Vendor_04e8_Product_7021.kl". I tried to change a letter, but it seems the modification has not been taken into count even after a reboot.
I also tried "Vendor_04e8_Product_7021_Version_0001.kl" and "Broadcom Bluetooth HID.kl" but none of them seems to work.as well.
Is that normal ? How can I fix it ?
Mouarf said:
I also tried "Vendor_04e8_Product_7021_Version_0001.kl" and "Broadcom Bluetooth HID.kl" but none of them seems to work.as well. Is that normal ? How can I fix it ?
Click to expand...
Click to collapse
Try using "BroadcomBluetoothHID.kl" or "Broadcom_Bluetooth_HID.kl" instead.
Any update? Did you ever get this working? I'm experiencing the same issue. logcat shows that it never touches my custom kl file and just uses the Generic.kl. I can modify that file and my changes work fine, but that's obviously not the right solution. I'm working with a Nexus 7 stock Android 4.4.2 ROM. According to the documentation, this should work!
http://source.android.com/devices/tech/input/key-layout-files.html
Thanks

SONIM XP7700 I need a QCN file or EFS backup please(I include manual how to do it)

Greetings, I have a problem with this phone, when repairing the IMEI does not appear on the screen, although in the software it appears, in the reading of the software used.
-- Found
-- MODAL : XP7700
-- MANUFUCTURER : Sonim
-- ANDROID VERSION : 5.1.1
-- CPU : armeabi-v7a
-- MMC STORAGE : 0 Bytes
-- HARDWARE : qcom
-- BOARD : MSM8226
-- BOOTLODER : unknown
-- USB CONFIG : mtp,adb
-- USER : jenkins
-- BASEBAND : MPSS.DI.2.0.1.c1-00017-12-05-161202-16
-- DISPLAY ID : 7A.0.2-09-5.1.1-12.01.12
-- BUILD ID : LMY47V
-- REGION : US
-- LANGUAGE : en
-- SIM STAT. : NOT_READY
-- BUILD DATE : Sat Dec 3 14:17:27 IST 2016
-- BUILD TAGS : release-keys
-- NETWORK TYPE : Unknown
-- SIM OPERATOR :
-- LCD DENSITY : 240
-- IMEI 1 :
-- ROOT STATUS
-- Superuser.Apk : Installed
-- BusyBox : Not Installed
-- Su Binararies : kingo 14
-- Root Status : ROOTED
Begin Reading Info Imei
COM Port number : COM99
Checking if phone is connected ... in 20 second(s)
Checking for phone connection at : COM99
IMEI1 : 356081093490333
IMEI2 : 000000000000000
MEID : 35608109349020
ESN : 80677FFF
Baseband Version : MPSS.DI.2.0.1.c1-00017-
Read Device Info Completed
-- Elapsed Time : 0 minutes - 5 seconds
The easiest method to read the QCN file, is using the software PSTTool1_725, using the Developer Mode option, with the password: 123456.
And with this programming code *#*#248#*#*
, you will have a menu in view, but you enter the USBMODE TEST line, and select TEST_MODE, with that operation you can activate the diagnostic port.
With the PSTTool1_725 in the system manager tab you will find the way to read and restore a QCN file, then images.
include the link to download the PSTTool1.7 setup software together with the USB drivers Sonim Smart Phone USB Driver Diag_1.4.
https://drive.google.com/file/d/1Cj_VclFRmepXA_cr_h9gDuXZord9Cxlv/view?usp=sharing

Categories

Resources