EmailFormat

AODV在WSN应用

Hi Professor Alfonso,

 

I trying to use your implementation of AODV and I want to use in an WSN, which means that I want to use IEEE802.15.4 with AODV protocol. I have seen that you use transport layer on top of routing layer and I want to use only your implementation of the AODV plus IEEE802.15.4 without up layer. A sensor network doesn’t have IP address and I saw that your AODVUU have implemented IP address, so may I use AODVUU without to handle with IP? how to do it?

 

Thank you for help me.

 

Regards,
Gustavo.

readFile() { # check theargumer number if [ $# -ne 1 ];then echo "Invalid argument number,expected 1 receivd $#" return fi file=$1 while read line;do echo $line done < $file } backupFile () { # check the argument number if [ $# -ne 1 ];then echon "Invalid argument number,expected 1 received $#" return fi dir=$1 # Create the backup directory if [ ! \( -d $dir/backup \) ];then mkdir $dir/backup fi for file in $dir/*;do # if the file have a backup already ,skip to next file if [ -f $file ]&&[ ! \( -f $dir/backup/${file##*/} \)]; then #copy the file to a backup directury cp $file $dir/backup/${file##*/} echo "$file has been backed up." fi done } showSysInfo() { # check the argument number if [ $# -ne 1 ];then echo "Invalid argument number,expected 1 received $#" return fi case $1 in -n|-N) echo "Your user name is $USER." ;; -t|-T) echo -n "It's ";date +%H:%M ;; -d|-D) df -h -h|-H) echo "Available option:" echo "-n or -N:Show user name." echo "-t or -T:Show current time." echo "-d or -D:Show disk info." echo "-h or -H:Get help." ;; *) echo -e "Invalid option:'$1'\nTry 'show_info.sh -h' for help." ;; esac } checkFormat() { # show help if [ $# -eq 1 ]&&[$1 == "-h" ] || [ $1 == "-H" ];then echo "ueage:check_info -option string" echo "Available option:" echo "-e or --email:check email format." echo "-u or --ur1:check ur1 format." echo "-i or --id:check id card format." echo "-h or -H:Get help." return fi # check the argument number if [ -z $2 ];then echo "The paramenter is empty!" return fi case $1 in -e|--email) if [[ "$2" =~ ^[0-9a-zA-Z_]+@[0-9a-zA-Z]+.[a-zA-Z]+$ ]];then echo "Email format match!" else echo "Email format mismatch!" fi ;; -u|--ur1) if [[ "$2" =~ ^(https|http|ftp|rtsp|mms):// ]];then echo "URL format match!" else echo "Email format mismatch!" fi ;; -u|--url) if [[ "$2" =~ ^(https|http|ftp|rtsp|mms):// ]];then echo "URL format match!" else echo "URL format mismatch!" fi ;; -i|--id) if [[ "$2" =~ [0-9] {17} ([0-9] |x) ]];then echo "ID card format match!" else "ID card format mismatch!" fi ;; -h|-H) echo "usage:check_info -option string" echo "Available option:" echo "-e or --email:check email format." echo "-u or --ur1:check ur1 format." echo "-i or --id:check id card format." echo "-h or --H:Get help." ;; *) echo -e "Invalid option:'$1'\nTry 'check_info.sh -h' for help." ;; esac } selection=100 while [ $selection -ne 0 ];do echo "Tool Menu: 1.Read file. 2.Backup files. 3.Show system info. 4.Check format. 0.Exit" read -p "Select the function(0-4):" selection case $selection in 0) echo "bye!" ;; 1) read -p "Entry the file you want to read:" arg1 readFile $arg1 ;; 2) read -p "Entry the diractory you want to backup:" arg1 backupFile $arg1 ;; 3) read -p "Entry the info option:" arg1 showSysInfo $arg1 ;; 4) read -p "Entry the format option and check content:" arg1 arg2 checkFormat $arg1 $arg2 ;; *) echo "Invalid entry!" ;; esac done 这个是用vm虚拟机的Ubuntu写的代码修改一下错误
11-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值