Hi guys,
I'm currently working on a indoor positioning project. I'm using WiFi signals to do this. I've tested a couple of phones and tablets but they all have a different delay between the scans. This varies from 600ms to 6 seconds. I'm looking for a way to get the scans as fast as possible 2/3 or maybe 4 scans per second. Perhaps tweaking the roms for the devices, this is no problem at all but then I need to know what I need to tweak of course.
Thnx in advance,
flitjes
Try WiFi analyzer from the market. It has a sgetting to adjust the scan interval. Otherwise, the scan interval is typically set in build.prop
You could fiddle around with sysctl in the console to see if something changes it.
sysctl -a|grep wlan gives you a list of possible candidates.
Isnt this a build.prop edit?
Sent from my Desire HD using XDA App
pretty sure you will have to root, if you havent done so already...
i havent...
Hi guys, I've rooted my phone so that is not a problem. I'm going to try the things u guys sugessted.
I've tried these things but I'm still not progressing.
When I edit the build.prop it only changes the interval of scanning for accesspoints when no application is running.
The problem I'm facing is: My application can't scan fast enough. I'm only getting 2 scans a second. And I'm looking for about 10 scans a second.
Maby this has to be changed on driver level?
I've found out something more. I've switch roms a couple of times and did the measurement of the scanrate. Because of the results I can conclude that some romes scan faster then others. But can't find out why?
Hi,
I have exactly the same question than flitjes. Is someone found a solution ?
I noted a sampling of:
- 5.4s on Nexus 5X (up to 3.3s if i change the ROM)
- 3s on Nexus 5
- 0.6s on Nexus 4
It's a bit hard to use a 6s sampling for indoor positioning
Code:
[email protected]:/ # sysctl -a|grep wlan
net.ipv4.conf.wlan0.accept_local = 0
net.ipv4.conf.wlan0.accept_redirects = 1
net.ipv4.conf.wlan0.accept_source_route = 1
net.ipv4.conf.wlan0.arp_accept = 0
net.ipv4.conf.wlan0.arp_announce = 0
net.ipv4.conf.wlan0.arp_filter = 0
net.ipv4.conf.wlan0.arp_ignore = 0
net.ipv4.conf.wlan0.arp_notify = 0
net.ipv4.conf.wlan0.bootp_relay = 0
net.ipv4.conf.wlan0.disable_policy = 0
net.ipv4.conf.wlan0.disable_xfrm = 0
net.ipv4.conf.wlan0.force_igmp_version = 0
net.ipv4.conf.wlan0.forwarding = 1
net.ipv4.conf.wlan0.log_martians = 0
net.ipv4.conf.wlan0.mc_forwarding = 0
net.ipv4.conf.wlan0.medium_id = 0
net.ipv4.conf.wlan0.promote_secondaries = 0
net.ipv4.conf.wlan0.proxy_arp = 0
net.ipv4.conf.wlan0.proxy_arp_pvlan = 0
net.ipv4.conf.wlan0.route_localnet = 0
net.ipv4.conf.wlan0.rp_filter = 0
net.ipv4.conf.wlan0.secure_redirects = 1
net.ipv4.conf.wlan0.send_redirects = 1
net.ipv4.conf.wlan0.shared_media = 1
net.ipv4.conf.wlan0.src_valid_mark = 0
net.ipv4.conf.wlan0.tag = 0
net.ipv4.neigh.wlan0.anycast_delay = 100
net.ipv4.neigh.wlan0.app_solicit = 0
net.ipv4.neigh.wlan0.base_reachable_time = 15
net.ipv4.neigh.wlan0.base_reachable_time_ms = 15000
net.ipv4.neigh.wlan0.delay_first_probe_time = 5
net.ipv4.neigh.wlan0.gc_stale_time = 60
net.ipv4.neigh.wlan0.locktime = 100
net.ipv4.neigh.wlan0.mcast_solicit = 3
net.ipv4.neigh.wlan0.proxy_delay = 80
net.ipv4.neigh.wlan0.proxy_qlen = 64
net.ipv4.neigh.wlan0.retrans_time = 100
net.ipv4.neigh.wlan0.retrans_time_ms = 1000
net.ipv4.neigh.wlan0.ucast_solicit = 3
net.ipv4.neigh.wlan0.unres_qlen = 31
net.ipv4.neigh.wlan0.unres_qlen_bytes = 65536
sysctl: key 'net.ipv4.route.flush': Permission denied
net.ipv6.conf.wlan0.accept_dad = 1
net.ipv6.conf.wlan0.accept_ra = 2
net.ipv6.conf.wlan0.accept_ra_defrtr = 1
net.ipv6.conf.wlan0.accept_ra_mtu = 1
net.ipv6.conf.wlan0.accept_ra_pinfo = 1
net.ipv6.conf.wlan0.accept_ra_prefix_route = 1
net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.wlan0.accept_ra_rt_table = -1000
net.ipv6.conf.wlan0.accept_ra_rtr_pref = 1
net.ipv6.conf.wlan0.accept_redirects = 1
net.ipv6.conf.wlan0.accept_source_route = 0
net.ipv6.conf.wlan0.autoconf = 1
net.ipv6.conf.wlan0.dad_transmits = 1
net.ipv6.conf.wlan0.disable_ipv6 = 0
net.ipv6.conf.wlan0.force_mld_version = 0
net.ipv6.conf.wlan0.force_tllao = 0
net.ipv6.conf.wlan0.forwarding = 1
net.ipv6.conf.wlan0.hop_limit = 64
net.ipv6.conf.wlan0.max_addresses = 16
net.ipv6.conf.wlan0.max_desync_factor = 600
net.ipv6.conf.wlan0.mtu = 1500
net.ipv6.conf.wlan0.ndisc_notify = 0
net.ipv6.conf.wlan0.optimistic_dad = 1
net.ipv6.conf.wlan0.proxy_ndp = 0
net.ipv6.conf.wlan0.regen_max_retry = 3
net.ipv6.conf.wlan0.router_probe_interval = 60
net.ipv6.conf.wlan0.router_solicitation_delay = 1
net.ipv6.conf.wlan0.router_solicitation_interval = 4
net.ipv6.conf.wlan0.router_solicitations = 3
net.ipv6.conf.wlan0.temp_prefered_lft = 86400
net.ipv6.conf.wlan0.temp_valid_lft = 604800
net.ipv6.conf.wlan0.use_oif_addrs_only = 1
net.ipv6.conf.wlan0.use_optimistic = 1
net.ipv6.conf.wlan0.use_tempaddr = 2
net.ipv6.neigh.wlan0.anycast_delay = 100
net.ipv6.neigh.wlan0.app_solicit = 0
net.ipv6.neigh.wlan0.base_reachable_time = 15
net.ipv6.neigh.wlan0.base_reachable_time_ms = 15000
net.ipv6.neigh.wlan0.delay_first_probe_time = 5
net.ipv6.neigh.wlan0.gc_stale_time = 60
net.ipv6.neigh.wlan0.locktime = 0
net.ipv6.neigh.wlan0.mcast_solicit = 3
net.ipv6.neigh.wlan0.proxy_delay = 80
net.ipv6.neigh.wlan0.proxy_qlen = 64
net.ipv6.neigh.wlan0.retrans_time = 100
net.ipv6.neigh.wlan0.retrans_time_ms = 1000
net.ipv6.neigh.wlan0.ucast_solicit = 3
net.ipv6.neigh.wlan0.unres_qlen = 31
net.ipv6.neigh.wlan0.unres_qlen_bytes = 65536
sysctl: key 'net.ipv6.route.flush': Permission denied
sysctl: key 'vm.compact_memory': Permission denied
Related
How can I put Control Panel apps in WAD?
CreaTe A shotcut: \Windows\cplmain.cpl,4
(THIS IS FOR mEMORY)
Ecco l'elenco di tuttii settingi collegabili d un'icona sul dektop:
1 = Password
2= Owner Information
3= Power
4 = Memory
5 = About
7 = Screen
8 = Input
9 = Sounds & Notifications
10 = Remove Programs
11 = Menus
12 =Buttons
13 = Today
15 = Beam
16 = Clock & Alarms
17 = Network Cards
18 = Regional Settings
19 = Connections
20 = Phone
22 = Certificates
23 = Bluetooth
24 = Error Reporting
25 = GPS
Thanks a lot, man. I think I was blind or lack of sleep! It's all in Lakeridgesoftware forum.
We are using SHNOTIFICATIONDATA to show icon on the upper toolbar on Windows Mobile 5. But we can't find out how to send a message to our window when we click on the icon, without shoing any poop-up window.
Our code:
SHNOTIFICATIONDATA* pNotification = NULL;
HICON hIconn = NULL;
hIconn = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
pNotification = (SHNOTIFICATIONDATA*)malloc(sizeof(SHNOTIFICATIONDATA));
pNotification->dwID = ICON_ID;
pNotification->clsid = guidPPCAlertsApp; npPriority = SHNP_INFORM;
pNotification->csDuration = 10; hwndSink = m_hWnd; pszHTML =
pNotification->_T("<html><b>...</b></html>");
pNotification->hicon = hIconn;
pNotification->cbStruct = sizeof(SHNOTIFICATIONDATA); pszTitle =
pNotification->TEXT("Application name"); grfFlags = SHNF_STRAIGHTTOTRAY;
SHNotificationAdd( pNotification );
!??
I am currently working on my "SciLor's WiMoBlue". The new protocol is ready. Everything works fine, until I send much data at the same time.
For example if I try to send an image in that way:
Code:
Public Sub SendImage(ByVal Image As Bitmap, ByVal Position As Point, ByVal Format As ImageFormat)
Dim PosX, PosY, Width, Height As Byte()
Dim ImageStream As New IO.MemoryStream
Dim ImageLength As Integer
Dim ImageLengthBytes As Byte()
Dim ImageBuffer(MaxChunkSize - HeaderSize - 1) As Byte
PosX = BitConverter.GetBytes(Position.X)
PosY = BitConverter.GetBytes(Position.Y)
Width = BitConverter.GetBytes(Image.Width)
Height = BitConverter.GetBytes(Image.Height)
Image.Save(ImageStream, ImageFormat2ImagingFormat(Format))
ImageStream.Seek(0, SeekOrigin.Begin)
ImageLength = ImageStream.Length
ImageLengthBytes = BitConverter.GetBytes(ImageLength)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.Initiate, CombineBytes(PosX, PosY, Width, Height, ImageLengthBytes)))
Thread.Sleep(2000)
Dim DataPos As Integer
For DataPos = 0 To ImageStream.Length - MaxChunkSize - HeaderSize - 1 Step MaxChunkSize - HeaderSize
ImageStream.Read(ImageBuffer, 0, MaxChunkSize - HeaderSize)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.Data, ImageBuffer))
'WaitForNextChunk = True
'Do While WaitForNextChunk = True
'Loop
'Thread.Sleep(2000)
Next
ImageBuffer = New Byte(ImageLength - DataPos - 1) {}
ImageStream.Read(ImageBuffer, 0, ImageBuffer.Length)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.End, ImageBuffer))
End Sub
SendData:
Code:
If Data.Length > MaxChunkSize Then
MsgBox("Data to long... " & vbNewLine & "SendSize:" & Data.Length & vbNewLine & "MaxSize:" & MaxChunkSize)
Else
If btClient.Connected = True And isRecieving = True Then
btStream.Write(Data, 0, Data.Length)
btStream.Flush()
End If
End If
Recieving Part:
Code:
While isRecieving = True
If btStream IsNot Nothing And btStream.DataAvailable = True Then
Try
Recieved = btStream.Read(myHeader, 0, myHeader.Length)
If myHeader(0) = HeaderIdentifier And myHeader(1) = OtherModeHeader Then
btStream.Read(myDataSize, 0, 2)
DataLength = BitConverter.ToInt16(myDataSize, 0)
myBuffer = New Byte(DataLength - 1) {}
Recieved = 0
Do Until Recieved = DataLength
If btStream.DataAvailable = True Then
Recieved += btStream.Read(myBuffer, Recieved, DataLength - Recieved)
End If
Loop
ExecuteCommand(myHeader(2), myHeader(3), myBuffer)
Else
Debug.WriteLine("WrongData")
Exit While
End If
Catch ex As Exception
Debug.WriteLine(ex.Message)
If Recieved = 0 Then
Exit While
End If
End Try
End If
End While
If I send the image, without Thread.Sleeps (huighe ones). The recieving stream gets weird. The gets btStream.DataAvailable = False forever. If I remove that ckeck, it hangs at the btStream.Read.
I also tried to fix that with waiting for the answer of the server, but the problem doesn't get solved.
Do you have any idea how to fix that problem?. In that speed the image sending is worthless
SciLor
*#*#4636#*#* for battery and other general setttings like GSM/CDMA
*#*#8255#*#* for Gtalk service monitor
*#*#7780#*#* for factory data reset
*#*#34971539#*#* for information about phone camera (be very careful hitting options here)
*#*#7594#*#* change the "Power" button action in your phone.
*#*#197328640#*#* service mode
*#197238640# service mode
*#0*# testing mode
*#06# view IMEI number
*#1234# display phones current firmware
*#*#1472365#*#* gps test
*#0011# network mode/cell info/power info
*#*#0*#*#* screen test menu
*#7465625# engineering mode
*#9900# Sysdump screen.. some sort of way to dump ram and other logs to sd card
sgs global:
*#1234# = Firmware Version.
*#2222# = H/W Version.
*#8999*8376263# = All Versions Together.
*#8999*8378# = Test Menu.
*#4777*8665# = GPSR Tool.
*#8999*523# = LCD Brightness.
*#8999*377# = Error Menu.
*#8999*327# = EEP Menu.
*#8999*667# = Debug Mode.
*#92782# = PhoneModel. (Wap)
#*5737425# = JAVA Mode.
*#2255# = Call List.
*#232337# = Bluetooth MAC Adress.
*#5282837# = Java Version.
#*4773# = Incremental Redundancy.
#*7752# = 8 PSK uplink capability bit.
#*7785# = Reset wakeup & RTK timer cariables/variables.
#*7200# = Tone Generator Mute.
#*3888# = BLUETOOTH Test mode.
#*7828# = Task screen.
#*#8377466# = S/W Version & H/W Version.
#*2562# = Restarts Phone.
#*2565# = No Blocking? General Defense.
#*3353# = General Defense, Code Erased.
#*3837# = Phone Hangs on White screen.
#*3849# = Restarts Phone.
#*3851# = Restarts Phone.
#*3876# = Restarts Phone.
#*7222# = Operation Typ: (Class C GSM)
#*7224# = !!! ERROR !!!
#*7252# = Operation Typ: (Class B GPRS)
#*7271# = CMD: (Not Available)
#*7274# = CMD: (Not Available)
#*7337# = Restarts Phone. (Resets Wap Settings)
#*2787# = CRTP ON/OFF.
#*2886# = AutoAnswer ON/OFF.
#*3737# = L1 AFC.
#*5133# = L1 HO Data.
#*7288# = GPRS Detached/Attached.
#*7287# = GPRS Attached.
#*7666# = White Screen.
#*7693# = Sleep Deactivate/Activate.
#*7284# = L1 HO Data.
#*2256# = Calibration info? (For CMD set DEBUGAUTONOMY in cihard.opt)
#*2286# = Databattery.
#*2527# = GPRS switching set to (Class 4, 8, 9, 10)
#*2679# = Copycat feature Activa/Deactivate.
#*3940# = External looptest 9600 bps.
#*4263# = Handsfree mode Activate/Deactivate.
#*4700# = Please use function 2637.
#*7352# = BVMC Reg value (LOW_SWTOFF, NOMINAL_SWTOFF)
#*2558# = Time ON.
#*3370# = Same as 4700.
#*3941# = External looptest 115200 bps
#*5176# = L1 Sleep.
#*7462# = SIM Phase.
#*7983# = Voltage/Freq.
#*7986# = Voltage.
#*8466# = Old Time.
#*2255# = Call Failed.
#*5187# = L1C2G trace Activate/Deactivate.
#*5376# = DELETE ALL SMS!!!!.
#*6837# = Official Software Version: (0003000016000702)
#*7524# = KCGPRS: (FF FF FF FF FF FF FF FF 07)
#*7562# = LOCI GPRS: (FF FF FF FF FF FF FF FF FF FF FF FE FF 01)
#*2337# = Permanent Registration Beep.
#*2474# = Charging Duration.
#*2834# = Audio Path. (Handsfree)
#*3270# = DCS Support Activate/Deactivate.
#*3282# = Data Activate/Deactivate.
#*3476# = EGSM Activate/Deactivate.
#*3676# = FORMAT FLASH VOLUME!!!
#*4760# = GSM Activate/Deactivate.
#*4864# = White Screen.
#*5171# = L1P1.
#*5172# = L1P2.
#*5173# = L1P3.
#*7326# = Accessory.
#*7683# = Sleep variable.
#*8465# = Time in L1.
#*2252# = Current CAL.
#*2836# = AVDDSS Management Activate/Deactivate.
#*3877# = Dump of SPY trace.
#*7728# = RSAV.
#*2677# = Same as 4700.
#*3728# = Time 2 Decod.
#*3725# = B4 last off.
#*7372# = Resetting the time to DPB variables.
#*7732# = Packet flow context bit Activate/Deactivate.
#*6833# = New uplink establishment Activate/Deactivate.
#*3273# = EGPRS multislot. (Class 4, 8, 9, 10)
#*7722# = RLC bitmap compression Activate/Deactivate.
#*2351# = Blinks 1347E201 in RED.
#*4472# = Hysteresis of serving cell: 3 dB
#*2775# = Switch to 2 inner speaker.
#*9270# = Force WBS.
#*7878# = FirstStartup. (0=NO, 1=YES)
#*3757# = DSL UART speed set to. (LOW, HIGH)
#*8726# = Switches USBACM to Normal.
#*8724# = Switches USBACM to Generator mode.
#*8727# = Switches USBACM to Slink mode.
#*8725# = Switches USBACM to Loop-back mode.
#*3838# = Blinks 3D030300 in RED.
#*2077# = GPRS Switch.
#*2027# = GPRS Switch.
#*0227# = GPRS Switch.
#*0277# = GPRS Switch.
#*8370# = Tfs4.0 Test 0.
#*8371# = Tfs4.0 Test 1.
#*8372# = Tfs4.0 Test 2.
#*8373# = Tfs4.0 Test 3.
#*8374# = Tfs4.0 Test 4.
#*8375# = Tfs4.0 Test 5.
#*8376# = Tfs4.0 Test 6.
#*8377# = Tfs4.0 Test 7.
#*8378# = Tfs4.0 Test 8.
#*8379# = Tfs4.0 Test 9.
#*7878# = FirstStartup. (0=NO, 1=YES)
#*3838# = Blinks 3D030300 in RED.
#*2077# = GPRS Switch.
#*2027# = GPRS Switch.
#*0227# = GPRS Switch.
#*0277# = GPRS Switch.
#*22671# = AMR REC START.
#*22672# = Stop AMR REC. (File name: /a/multimedia/sounds/voice list/ENGMODE.amr)
#*22673# = Pause REC.
#*22674# = Resume REC.
#*22675# = AMR Playback.
#*22676# = AMR Stop Play.
#*22677# = Pause Play.
#*22678# = Resume Play.
#*77261# = PCM Rec Req.
#*77262# = Stop PCM Rec.
#*77263# = PCM Playback.
#*77264# = PCM Stop Play.
#*22679# = AMR Get Time.
*#8999*364# = Watchdog ON/OFF.
*#8999*427# = WATCHDOG signal route setup.
*2767*226372# = Camera Reset. (deletes photos)
*2767*3855# = E2P Full Reset.
*2767*2878# = E2P Custom Reset.
*2767*927# = E2P Wap Reset.
*2767*226372# = E2P Camera Reset.
*2767*688# = Reset Mobile TV.
#7263867# = RAM Dump. (On or Off)
wap / mms code:
*2767*73738927# = WAP Settings Reset.
email code:
#*36245# Turns Email TestMenu on.
*2767*22236245# Email EPP set (....)!
*2767*837836245# Email Test Account!
*2767*29536245# Email Test2 Account!
*2767*036245# Email EPP reset!
*2767*136245# Email EPP set (1)!
*2767*736245# Email EPP set (7)!
*2767*3036245# Email...
*2767*3136245# Email...
*2767*3336245# Email...
*2767*3436245# Email...
*2767*3936245# Email...
*2767*4136245# Email...
*2767*4336245# Email...
*2767*4436245# Email...
*2767*4536245# Email...
*2767*4636245# Email...
*2767*4936245# Email...
*2767*6036245# Email...
*2767*6136245# Email...
*2767*6236245# Email...
*2767*6336245# Email...
*2767*6536245# Email...
*2767*6636245# Email...
*2767*8636245# Email...
*2767*85236245# Email...
lock code:
*#7465625# = Check the locks.
*7465625*638*Code# = Enables Network lock.
#7465625*638*Code# = Disables Network lock.
*7465625*782*Code# = Enables Subset lock.
#7465625*782*Code# = Disables Subset lock.
*7465625*77*Code# = Enables SP lock.
#7465625*77*Code# = Disables SP lock.
*7465625*27*Code# = Enables CP lock.
#7465625*27*Code# = Disables CP lock.
*7465625*746*Code# = Enables SIM lock.
#7465625*746*Code# = Disables SIM lock.
*7465625*228# = Activa lock ON.
#7465625*228# = Activa lock OFF.
*7465625*28638# = Auto Network lock ON.
#7465625*28638# = Auto Network lock OFF.
*7465625*28782# = Auto subset lock ON.
#7465625*28782# = Auto subset lock OFF.
*7465625*2877# = Auto SP lock ON.
#7465625*2877# = Auto SP lock OFF.
*7465625*2827# = Auto CP lock ON.
#7465625*2827# = Auto CP lock OFF.
*7465625*28746# = Auto SIM lock ON.
#7465625*28746# = Auto SIM lock OFF.
Pretty extensive list. I believe the codes change from firmware to firmware.
Definately a sticky material.
PS : Please put a [REF] in your title, Otherwise this thread has a chance of getting kicked off to nowhere.
And all/most present in sgs tools...
dupel said:
And all/most present in sgs tools...
Click to expand...
Click to collapse
Which I believe is not available unless your phone is rooted.
Sgs tools works without root. At least as far as using its magic code functions.
Sent from my GT-I9000 using XDA App
And all/most present in sgs tools...
Load more in this list than on my SGS Tools .
jje
->Rename "clearpad_pen.idc.rar" to "clearpad_pen.idc"
->Just simply put clearpad_pen.idc in "system/usr/idc"
->set the permissios to rw-r-r
->activate pen mode by this thread or clearpad-controls(glove,pen,vibration)(import them in kernel adiutor custom controls)
For best experience use Sony Sketch app from play store
Tested on raschads Aicp 14
post your own sketches right here
file content:
Code:
# Device Type
touch.deviceType = touchScreen
# Pressure
touch.pressure.calibration = physical
touch.pressure.scale = 0.15
#Size
touch.size.calibration = area
touch.size.scale = 32.69
# Touch Filter
touch.filter.level = 2
touch.filter.path = /system/lib/touchfilter/tftype4.so
touch.filter.tftype4.Enabled = 1
touch.filter.tftype4.AssumedDelayFactorA = -11.71
touch.filter.tftype4.AssumedDelayFactorB = 12.53
touch.filter.tftype4.AssumedDelayFactorC = -0.81
touch.filter.tftype4.MaxSpeed = 0.052
touch.filter.tftype4.PositionFactorA = 0.2
touch.filter.tftype4.PStablePositionFactor = 0
touch.filter.tftype4.DirectivePriorityFactor = 0.9
touch.filter.tftype4.LatestSpeedWeight = 0.9
touch.filter.tftype4.GapResolver = 0.8
touch.filter.tftype4.OrgSize = 8
touch.filter.tftype4.AccSize = 8
touch.filter.tftype4.AddInitialAcc = 1
touch.filter.tftype4.DefaultInitialAcc = 0
touch.filter.tftype4.DragRangeSize = 3
touch.filter.tftype4.NoAccDistanceMin = 15.0
touch.filter.tftype4.NoAccDistanceMax = 650.0
touch.filter.tftype4.NoAccRate = 0.3