Simulation tool for Bluetooth - bluetooth

Can any body suggest me the best simulation tool now a days for Bluetooth Networks. in order to test various algorithoms about Routing and Roaming issue.

There are two that I know of: NS-2 (with the UCBT: Bluetooth Extension) and QualNet. Of those, NS2 is probably the most used.

There is ns3 those ns2 is still the most widely used simulator. The network simulation 2 and 3 are opensource projects with lots of implementations and protocol models already available to you. In such case all you need to do is, write the code of your network setup on a tcl file and execute. Voila, you have ur output on the trace file.
Qualnet is propitiatory and very expensive to license, but is definitely more easy to use. Also the support you get from their team is great.
So if you have the dough to get qualnet, I would recommend that else opensource projects rule... :)

Is it possible in Matlab to do simulation for Bluetooth algorithoms

Related

Contiki port to MSP430F5 launchpad

I'm trying to port Contiki-OS to the MSP430F5 Launchpad from Texas Instrument.
The MSP430 is already supported in Contiki, however the it doesn't run on the Launchpad platform.
I've studied some custom Platform port made for other chips and platform. The goal is to add a new folder in the platform folder.
The desired new folder is supposed to have this architecture (like every platforms folder) :
myCustomPlatformFolder
Makefile (Compile instructions for this platform)
contiki-conf.h (Define the configuration of this platform)
contifi-main.c (Used by Contiki core to launch the platform)
dev
optional files defining sensors functionalities
My problem is that I don't really know where to start in order to create a fully operational configuration. There is some parts of the native configuration that I understand and that I can fill using the MSP430F5 data sheet (CLOCK_CONF_SECOND, F_CPU) . However, in every other defined platform, there is a lot a constants in contiki-conf.h that I don't understand / don't know where they come from.
I'm a novice in Contiki development, or even uController development, so I wonder where I can find informations that would help me.
Is there a place where I can find some instructions about creating a new Contiki platform port ?
What does the contiki-conf.h file should contain in order to make my launchpad work ?
Contiki already has support for the MSP430 Series 5. Specifically, mainline Contiki at the moment includes support for Wismote hardware platform. You should start by looking into the code under platforms/wismote and cpu/msp430/f5xxx.
Next, I would do something like this:
Write main() function and get Contiki to boot up. You can copy contiki-main.c code from some other platform (such as Wismote).
Get serial port to work. No need to write a custom interrupt, the code in cpu/msp430 already has all the functions required; just make sure to configure that correct UART with an acceptable baudrate.
Get timing to work. Again, the code in cpu/msp430 already defines timer interrupts, so this should not be a problem.
Get peripherals to work (ADC, I2C and SPI buses, possibly USB...)
Run a few selected test applications from the examples directory and check that they're working correctly.
As for your other questions, most of the stuff in contiki-conf.h is networking related. As far as I know, Launchpads do not come with a radio transceiver. This means you can safely exclude all of that networking stuff. (It also makes one wonder why would anyone want to port Contiki to such a platform in the first place, as Contiki's main strengths are networking and communication protocols.)
I'm not aware of any official documentation that would describe how to port Contiki to a new platform. Get used to studying the source code. Luckily, Contiki source usually isn't that complicated.

How did NOKIA N9 pppd to network?

When use wcdma module ,we should use ppp protocol to communicate with ppp server. But I can't see any file about ppp in NOKIA N9's filesystem.
So,How N9 use linux(harmattan) to dial to PPP server and then linked to internet ?
This question seems more suited to SuperUser.com - it is not related to programming. See the StackOverflow FAQ for more information on what kind of questions you can ask here.
Regardless of where you post a question, it would help all of us if you provided more context, preferably using full sentences. As it stands now, it is difficult to tell what your actual question is. Do you want to connect a computer to the internet using the phone? Do you want to use the phone itself to access the network?
It is also difficult to understand what the problem is. You should at least tell us what you have tried and where that failed.
Unless you pay more attention to your question, you will not get any meaningful answers. You should probably have a look here for a guide on asking questions.
You should keep in mind that hardware-related questions can usually be answered only by people that have access to that particular device. With the amount of information you are providing this question boils down to "How do I connect to a PPP server on Nokia N9?", which is impossible to answer, unless one has access to that particular phone model.
By providing more context, such as describing how the firmware in that phone is setup, you allow people that have more general experience on Linux and embedded devices to help you.
Since I do not have that particular device, I will take a shot in the dark and offer a few alternatives, in order of decreasing probability:
You may need to install additional packages. I believe that MeeGo uses Debian-style packages and the PPP-related packages may not be installed by default. You should have a look at your software repositories.
The PPP support does not have to be a module - it can be included in the main kernel binary. pppd could also be replaced by a custom binary, although that is not very common, even on embedded devices.
Are you absolutely certain that your current software configuration does not support PPP? How are you searching in the filesystem for PPP-related files? What are you expecting to find? Does using the phone UI to connect work?
There is a very slim chance that the default firmware does not support PPP at all - in that case you may have to install custom packages or even replace the firmware itself with a custom version.

NFC Chipset evaluation tool

I need to develope a NFC chipset evaluation tool. i need to connect the NFC board (that includes the NFC chip) to PC (running in Windows). then i need to get all the data of the chip to my PC using a software tool. this is the first time i am trying to do it. i need some advises regarding the first steps. i suppose, i would use a TCP-IP protocol to connect with the chipset. but how exactly it would work? for example, there is a USB-tester... http://www.vconsole.com/client/?page=page&id=13. my tool will be similar to this.
i also need to validate in the low level entry, for the framework.
i need to have a process description for the development of the tool. what are the steps?
thanks for your advices.
You cannot use TCP/IP over a USB/I2C connection. Most test boards come with software that you can use to connect to the board. What you are asking is a very broad question. If you are trying to write your own question, or hook it up to Excel to run tests with, you are progressing down a very time consuming path. People here are willing to help you figure out a question you are stuck on, but not to do all the hard work for you.
Like I said, you are starting on a BIG project, and will need to research A LOT. Then I'd recommend asking specific questions rather than very general questions.
As far as where to start, I'd start by writing down everything you want to know, and then start figuring out how to get each individual piece.

Linux per program firewall similar to windows and mac counterparts

Is it possible to create GUI firewall that works as Windows and Mac counterparts? Per program basis. Popup notification window when specific program want to send\recv data from network.
If no, than why? What Linux kernel lacks to allow existence of such programs?
If yes, than why there aren't such program?
P.S. This is programming question, not user one.
Yes it's possible. You will need to setup firewall rules to route traffic through an userspace daemon, it'll involve quite a bit of work.
N/A
Because they're pretty pointless - if the user understands which programs he should block from net access he could just as well use one of multiple existing friendly netfilter/iptables frontends to configure this.
It is possible, there are no restrictions and at least one such application exists.
I would like to clarify a couple of points though.
If I understood this article correct, the firewalls mentioned here so far and iptables this question is tagged under are packet filters and accept and drop packets depending more on IP addresses and ports they come from/sent to.
What you describe looks more like mandatory access control to me. There are several utilities for that purpose in Linux - selinux, apparmor, tomoyo.
If I had to implement a graphical utility you describe, I would pick, for example, AppArmor, which supports whitelists, and, to some extent, dynamic profiling, and tried to make a GUI for it.
OpenSUSE's YaST features graphical interface for apparmor setup and 'learning' , but it is specific to the distribution.
So Linux users and administrators have several ways to control network (and files) access on per-application basis.
Why the graphical frontends for MAC are so few is another question. Probably it's because Linux desktop users tend to trust software they install from repositories and have less reasons to control them this way (if an application is freely distributed, it has less reasons to call home and packages are normally reviewed before they get to repositories) while administrators and power users are fine with command line.
As desktop Linux gets more popular and people install more software from AUR or PPA or even from gnome-look.org where packages and scripts are not reviewed that accurately (if at all) a demand for such type of software (user-friendly, simple to configure MAC) might grow.
To answer your 3rd point.
There is such a program which provides zenity popups, it is called Leopard Flower:
http://sourceforge.net/projects/leopardflower
Yes. Everything is possible
-
There are real antiviruses for linux, so there could be firewalls with GUI also. But as a linux user I can say that such firewall is not needed.
I reached that Question as i am currently trying to migrate from a Mac to Linux. There are a lot of applications I run on my Mac and on my Linux PC. Some of them I trust fully. But others I am not fully trusting. If they are installed from a source that checks them or not, do i have to trust them because someone else did? No, I am old enough to choose myself.
In times where privacy is getting more and more complicate to achieve, and Distributions exist that show that we should not trust everyone, I like to be in control of what my applications do. This control might not end at the connection to the network/Internet but it is what this question (and mine is about.
I have used LittleSnitch for MacOSX in the past years and I was surprised how often an application likes to access the internet without me even noticing. To check for updates, to call home, ...
Now where i would like to switch to Linux, I tried to find the same thing as I want to be in control of what leaves my PC.
During my research I found a lot of questions about that topic. This one, in my opinion, best describes what it is about. The question for me is the same. I want to know when an application tries to send or receive information over the network/internet.
Solutions like SELinux and AppAmor might be able to allow or deny such connections. Configuring them means a lot of manual configuration and does not inform when a new application tries to connect somewhere. You have to know which application you want to deny access to the network.
The existence of Douane (How to control internet access for each program? and DouaneApp.com) show that there is a need for an easy solution. There is even a Distribution which seems to have such a feature included. But i am not sure what Subgraph OS (subgraph.com) is using, but they state something like this on there website. It reads exactly like the initial question: "The Subgraph OS application firewall allows a user to control which applications can initiate outgoing connections. When an unknown application attempts to make an outgoing connection, the user will be prompted to allow or deny the connection on a temporary or permanent basis. This helps prevent malicious applications from phoning home."
As it seems to me, there are only two options at the moment. One is to Compiling Douane manually mysqlf or two, switch distribution to Subgraph OS. As one of the answers state, everything is possible - So i am surprised there is no other solution. Or is there?

SNMP devices emulation

We have network management system under linux, C/C++, perl and we need to test performance of this system. Is there a tool or way that would allow us to emulate 50 000 SNMP devices?
I don't know what more to say here... Please let me know if I should provide more information.
Any idea is appreciated.
Thank you
Bogdan
There are a few tools out there that will let you do that, however what I've seen is usually commercial software.
Adventnet SNMP Agent Simulator
MIMIC SNMP Agent Simulator
You can try Raddle - it is open-source, written in Perl and based on honeyd, which should be able to emulate up to 65536 hosts.
Thank you for your answers. Here's the way we solve this problem right now:
We have a linux VM up with 1 interface (eth0).
We add 50'000 virtual interfaces (eth0:1, eth0:2 etc).
An SNMP daemon is up and replies on requests through all the ip addresses.
This way we have 50K IP adresses in the network that reply to SNMP requests.
Though, I'm investigating Raddle. Maybe if it suits we'll switch to this solution.
Thanks,
Bogdan
If the devices are sending traps, you could use Net-SNMP's snmptrap to simulate the effects of that many traps being sent.
The snmpsim tool reportedly can sustain the simulation of ~50K agents. It can simulate different agents by responding at different IPs or to distinct SNMPv1/v2c community names or SNMPv3 context names.
There are also the hints on performance optimization.

Resources