wireless

Hexagonal grid representing a cellular network as used in mobile communication systems

谁说胖子不能爱 提交于 2019-12-12 09:56:40
问题 I am relatively new to Matlab and I want to generate a hexagonal grid that represents a cellular network where each hexagon has a specific behaviour. My question is how does one go from a square grid to hex grid (transfer matrix)?. This is what I have so far. [X,Y] = meshgrid(0:60); figure(1), plot(X,Y,'b') hold on, plot(Y,X,'b') axis square 回答1: A few years ago I wrote some code to do just that: %// Define input data: close all clear all M_max = 14; %// number of cells in vertical direction

android USB connection charging signals

丶灬走出姿态 提交于 2019-12-12 04:35:38
问题 How can I check the USB socket is plugged or not (Charging with AC / USB)? (android version 2.1 / 2.2) I am writing a wireless charging application that I want to get different types of charging signals ( wireless , AC charging / USB ). I used broadcastReceiver to get the charging signal and found that using wireless charging and AC charging return the same signal (AC charging). To distinguish wireless charging and AC charging, I want to detect the USB socket is plugged or not. I try to use

Getting the value of bitrate from a wireless device driver.

≡放荡痞女 提交于 2019-12-12 03:42:06
问题 I'm writing a kernel module that needs to read the value of bitrate from this union: union iwreq_data {== ....... struct iw_param bitrate; /* default bit rate */ .... } This code is form wireless.h Does anyone know how I can access it's value? (I'm using linux kernel 2.6.35) 回答1: There's no way to do that, unfortunately ... taking a closer look at the iw_param struct we find struct iw_param { __s32 value; /* The value of the parameter itself */ __u8 fixed; /* Hardware should not use auto

WlanClient not updating/Not able to close WlanClient

你说的曾经没有我的故事 提交于 2019-12-12 03:35:21
问题 I am trying to create a background worker for getting the latest RSSI and link quality for all the available WLAN networks. However, if I initialise the WlanClient inside this background worker, I get this error message. An attempt was made to establish a session to a network server, but there are already too many sessions established to that server vb.net However, if I create a public class WlanClient, it does not update the RSSI and link quality values as the session is kept open and is not

How to send single channel scan request to libnl, and receive single channel scan completion response for corresponding channel

独自空忆成欢 提交于 2019-12-11 20:14:20
问题 I am sending single SSID and frequency to libnl for scanning, but i got multiple scan result along with my requested SSID and frequency,But i need single scan result (only for requested SSID), how to achieve this. Kindly help me , i am sending my code also.This code will run. Compile: gcc -g -o scan scantesthandler.c -L /usr/lib/i386-linux-gnu/libnl.so -lnl Run with debug log: NLCB=debug ./scan #include<assert.h> #include<errno.h> #include<ifaddrs.h> #include<netdb.h> #include<stddef.h>

Arrange nodes in ns2

依然范特西╮ 提交于 2019-12-11 17:06:52
问题 I need to arrange 100 nodes in a hexagonal shape in my tcl script. My simulation is wireless (dsr protocol). How can I do this? Which is the best size of the grid? I thought 3000x3000. Thank you. 回答1: The simplest way is to build the network graphically .. you can use nsg tool to build the network and generate the tcl code very easily http://www.nsnam.com/2013/04/ns2-scenario-generator.html first you must determine the transition range of nodes, put required number of node-> get network size

Does winpcap/libpcap allow me to send raw wireless packets?

妖精的绣舞 提交于 2019-12-11 16:11:33
问题 I've been using winpcap to send raw packets over a wired connection for a while now. I'm building my own protocol (nothing special, just getting the hang of it) but now I want to extend it to wireless connections too. Does winpcap allow me to send raw packets over a wireless adapter? I'm using VC++ on windows xp and windows 7. On my windows 7 machine it seems to work, but on my xp machine winpcap can't even open my adapter to send/receive packets. I tried to launch wireshark on my xp machine

VBFP doesnt work probably in aqua-sim

陌路散爱 提交于 2019-12-11 15:34:08
问题 I used VBF routing, in aqua-sim. However, i noticed that the source packet never reaches the sink! and consumed energy exceed the initial energy! what is the causes for that? Here is the tcl file set opt(chan) Channel/UnderwaterChannel set opt(prop) Propagation/UnderwaterPropagation set opt(netif) Phy/UnderwaterPhy set opt(mac) Mac/UnderwaterMac/BroadcastMac set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(energy) EnergyModel set opt(txpower) 2.0 set opt(rxpower) 0.75 set opt

Does Hololens support Wifi Direct?

眉间皱痕 提交于 2019-12-11 07:01:24
问题 I am about to make a Hololens software that uses some wireless connection to interact with an Android mobile phone. Do you know does Hololens support Wifi Direct? If Hololens does not support Wifi Direct, can you tell what connection technologies can be alternatively used? 回答1: At this point HoloLens doesn't support WifiDirect. Soon HoloLens updated version is going to be released and hopefully that version will have this(not yet officially confirmed). However for now you can use BLE or use

Connect to an available wireless network using VB.NET

江枫思渺然 提交于 2019-12-11 04:32:10
问题 Using VB.NET how do I connect to an available wireless network. I have been able to list all the available networks. 回答1: Assuming you are wanting to control the Windows biult-in wifi stack, you should be able to do it with the WlanConnect Function. A signature is availeble at pinvoke.net. MSDN has a list of the articles pertaining to wifi here. The MSDN page does not say whether this is the case, but an application might need elevated permissions to use this API... 回答2: If you have the WLAN