wifi

To read RSSI from WiFi Sensor

老子叫甜甜 提交于 2019-12-01 12:47:24
问题 Please help me how to write a code in Java to read the Received Signal Strength Indicator from the WiFi sensor. I tried to do so using socket programming but all my tries weren't get what I want. now I am looking in J2me I may get good answer but I see i may need some advices. Thank you 回答1: Are you using Windows? WlanAPI should be able to tell you this information which it receives from the WiFi interface so you want to make sure that the WiFi interface on your computer supports whatever

Android, wifi active scans

安稳与你 提交于 2019-12-01 12:36:13
I need a frequent wifi scan on my android application (I'm trying to build a local indoor positioning system based on wifi RSSI values). IF I call wifi.startScan() I have onReceive() called back once every 6 seconds (I suppose by default it's scanning passively): how do I get more frequent callbacks? Should I ask for "active" scans? How is it done? Are there any drawbacks? I don't think you can. It is a device and/or OS version dependend setting. On the Nexus One for example it takes roughly a second to scan whereas on the G1 it takes significantly longer (or get fresh results after a few

基于STM32(ARM Cortex M3)的Arduino——Spurce (支持Eclip...

跟風遠走 提交于 2019-12-01 11:50:31
很多电子专业的学生,或者刚刚入行的电子工程师都有一个困惑。电子行业范畴这么大,这么多细分行业,不知该如何抉择。诸如硬件、软件、 Layout 、单片机、 ARM ……这么多名词让人眼花缭乱,职场新人们生怕找错了方向、入错了行。 众所周知,现在嵌入式 ARM 行业很火热。很多在高校中只接触过 51 单片机的初学者在嵌入式面前犯了愁。一方面是很想学,另一方面又是不得入门的方法,无从下手。 其实,不管方向再怎么多,基础要求总是相同的。单片机、 C 语言可以说是电子行业研发人员必备的基本技能。 作为 ARM 大家庭的一员, STM32 既有着 ARM 的高性能,也有着中低端单片机的易用性。她不像 ARM9 、 ARM11 那样诱惑过多, ARM9 以上的平台就仅仅 linux 和 wince 等操作系统内核,驱动,应用,各种协议,硬件原理图,等都有够学一年半载了,没这点时间,你无法完全掌握,所以并不适合入门,周期太长,难度相对来说较大。 入门最好选择主频低一点的处理器,一切都是先掌握好原理,弄明白,弄透彻了,一切就都好办!所以单片机中, STM32 是目前最最主流的芯片,加上目前 STM32 的资料非常的多,所以,最好还是推荐 STM32 的开发板做为入门级的板子,学会之后,即可自己独立开发出各种产品, STM32 官方提供的开源代码库也是非常好用,将底层的各种汇编

What are the things which reduces (Android) battery time?

百般思念 提交于 2019-12-01 11:31:52
In one of our application we need to use the GPS continuesly ,the purpose is to get the user driving speed. Recently I found that while using the GPS continuesly can drain the device battery. If the GPS device is not used, device battery will work for hours but if the GPS is used it reduces the battery life dramatically. I was wondering that "what are other things" which can reduce the battery time? How we can avoid them ? What are the best practices to use them? Yaqub Ahmad Well i found the answer here, Google I/O 2009 - Coding for Life -- Battery Life, That Is What can I do to increase

Getting wifi Signal strength

限于喜欢 提交于 2019-12-01 10:50:49
Is there a way to get wifi signal strength in C#? Currently I'm getting the same through Process proc = new Process(); proc.StartInfo.CreateNoWindow = true; proc.StartInfo.FileName = "netsh"; proc.StartInfo.Arguments = "wlan show interfaces"; proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.UseShellExecute = false; proc.Start(); and then I get the wifi signal strength by reading the output. Is there a better way? Preferably using API's Why don't you use a WMI query to get it in a clean way ? private double RetrieveSignalString() { double theSignalStrength = 0; ConnectionOptions

What are the things which reduces (Android) battery time?

谁都会走 提交于 2019-12-01 08:09:16
问题 In one of our application we need to use the GPS continuesly ,the purpose is to get the user driving speed. Recently I found that while using the GPS continuesly can drain the device battery. If the GPS device is not used, device battery will work for hours but if the GPS is used it reduces the battery life dramatically. I was wondering that "what are other things" which can reduce the battery time? How we can avoid them ? What are the best practices to use them? 回答1: Well i found the answer

Is it possible to programatically enable wifi on Android 10 devices?

北城以北 提交于 2019-12-01 07:28:58
问题 Since setWifiEnabled is deprecated on Android 10, how does one programatically enable wifi on Android 10 devices? Is it not possible to programatically enable wifi at all on Android 10+ (SDK 29) ? 回答1: No, This is not possible to enable or disable Wi-Fi programmatically from Android-10 API level 29 [ Until google provides an alternative solution ]. For applications targeting Build.VERSION_CODES.Q or above, this API will always return false and will have no effect. If apps are targeting an

How to get wifi standard

[亡魂溺海] 提交于 2019-12-01 06:49:01
How can I get and change wifi standard, which I'm using now in my android device. For example: IEEE 802.11b or IEEE 802.11g or IEEE 802.11n. If this is possible. Its not possible to get what type of network the phone is connected to. However you can find the speed of the network: WifiManager wifiManager = Context.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); if (wifiInfo != null) { Integer linkSpeed = wifiInfo.getLinkSpeed(); //measured using WifiInfo.LINK_SPEED_UNITS } P.S.: You can probably guess the type of network by interrogating the

discover mobil devices using wifi

邮差的信 提交于 2019-12-01 06:47:35
I want to track people (carrying mobile devices) in a pedestrian street by using two "check points" A and B. I'm planning to place mobile devices or netbooks with Android/IOS or Linux in each check point and log an id so I can tell how many walked from A to B. I know I can discover other peoples devices using bluetooth but can it be done with wifi? I thinking of turning my devices into wifi access points. People will of course not connect to the access point, just walk by. So my question is: Can it be done on the mentioned platforms? It is important that I can tell if the same person passed

GitLab (SSH) via public WIFI, port 22 blocked

浪子不回头ぞ 提交于 2019-12-01 06:41:35
I using Starbucks wifi and I get the following when trying to push to a gitlab.com repo: $ git push origin master ssh: connect to host gitlab.com port 22: Connection refused fatal: Could not read from remote repository. I tried adapting a workaround for GitHub: Github (SSH) via public WIFI, port 22 blocked by adding the following to ~/.ssh/config Host gitlab.com Hostname gitlab.com Port 443 But that doesn't work as I get this error: $ git push origin master ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the