xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

./send_Data: 1: ./send_Data: syntax error: "(" unexpected #59

Open serrhini opened 3 years ago

serrhini commented 3 years ago

Hi all the receive mode is working, however sendData is not working I got the following error after executing senData with wlan0 and mac addres of destination and 100 error message ./send_Data: 1: ./send_Data: syntax error: "(" unexpected please can you enlighten me

miligithub commented 3 years ago

I met with the same problem. After spending a whole day on this problem, I found out that I should have used the /bin/sendData instead of scp the send_Data file from the UserSpaceApp folder.

mili@mili-Ubuntu:~$ ssh root@192.168.1.1

BusyBox v1.24.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 DESIGNATED DRIVER (Bleeding Edge, 50108)
 -----------------------------------------------------
  * 2 oz. Orange Juice         Combine all juices in a
  * 2 oz. Pineapple Juice      tall glass filled with
  * 2 oz. Grapefruit Juice     ice, stir well.
  * 2 oz. Cranberry Juice
 -----------------------------------------------------
root@OpenWrt:~# ls /bin
ash              false            mount            sendData
board_detect     fgrep            mv               setPHY
busybox          fsync            netmsg           sh
cat              grep             netstat          sleep
chgrp            gunzip           nice             sync
chmod            gzip             opkg             tar
chown            ipcalc.sh        pidof            touch
config_generate  kill             ping             true
cp               ln               ping6            ubus
date             lock             ps               uclient-fetch
dd               login            pwd              umount
df               ls               recvCSI          uname
dmesg            mkdir            rm               vi
echo             mknod            rmdir            wget
egrep            mktemp           sed              zcat
root@OpenWrt:~# /bin/sendData wlan0 00:7F:5D:3E:4A 100
Packet Length is: 1014,pkt_num is: 100
root@OpenWrt:~# 
kr689 commented 1 year ago

Why is this the case? I'm trying to use a modified version of sendData and so I used scp but I'm getting this error. The normal sendData works fine. Did you manage to fix it?

Screenshot from 2023-01-25 12:47:12 See the last lines of the terminal