Atheros_CSI_tool_OpenWRT_src icon indicating copy to clipboard operation
Atheros_CSI_tool_OpenWRT_src copied to clipboard

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

Open serrhini opened this issue 4 years ago • 2 comments

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

serrhini avatar Jan 15 '21 22:01 serrhini

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 [email protected]


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:~# 

miligithub avatar Mar 07 '21 04:03 miligithub

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

kr689 avatar Jan 25 '23 12:01 kr689