# WP7702 how to enable ethernet IoT card?

**URL:** <https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001>\
**Category:** mangOH Red\
**Created:** [August 10, 2020, 9:45pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001 "2020-08-10T21:45:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 10, 2020, 9:45pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/1 "2020-08-10T21:45:06Z")

</div>

I have a mangoh red with a wp7702 module, everything is pretty much set up and each step in the getting started guide has been completed successfully. Now I have an ethernet expansion card made by Talon Communications for the IoT CN306 header and I have placed the card in the slot however I do not see an LED showing for the card detect, it is completely unrecognized, how can I get this card up and communicating. I would like to send UART data from my raspberry pi to and from the mangoh red to another mangoh red using LTE and the AirVantage cloud server.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 11, 2020, 1:08am UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/2 "2020-08-11T01:08:49Z")

</div>

please see here:

> [@Setting up MangOH Red as Router to Cellular Gateway](https://mangoh.discourse.group/t/setting-up-mangoh-red-as-router-to-cellular-gateway/1241):
>
> Objective: Configure a MangOH to route cellular internet data to/from other network interfaces. For example the image below shows how we will route traffic to/from the ethernet IoT slot to/from the cellular gateway. Solution: To configure the MangOH to route data to/from network interfaces to/from the public cellular interface execute the following steps: A. For wired interfaces, i.e. eth0 run the following steps: Download the cfg\_gateway.sh script to the MangOH device (als…

You might also add the following to start the card:

echo 2 \> /sys/class/gpio/export  
echo out \> /sys/class/gpio/gpio2/direction  
echo 1 \> /sys/class/gpio/gpio2/value

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 11, 2020, 2:50pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/3 "2020-08-11T14:50:37Z")

</div>

I am stuck on step one of the forum post you referred me to:

After typing in step 1:  
root@swi-mdm9x28-wp:~# scp ./scripts/cfg\_gateway.sh [root@192.168.2.2](mailto:root@192.168.2.2):/tmp/

I get an error message

Host ‘192.168.2.2’ is not in the trusted hosts file.  
(ssh-rsa fingerprint md5 90:43:bc:3c:49:99:d8:f4:a0:b0:45:cd"d6:d4:d0:be)  
Do you want to continue connecting? (y/n) y  
./scripts/cfg\_gateway.sh: No such file or directory

However the cfg\_gateway.sh file is in the directory Home/mangOH/scripts and there it is cfg\_gateway.sh

Can you please help me fix this problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 11, 2020, 3:02pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/4 "2020-08-11T15:02:45Z")

</div>

you should run the scp in Ubuntu PC to transfer the file to module /tmp folder.

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 11, 2020, 5:01pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/5 "2020-08-11T17:01:49Z")

</div>

I am not sure how to do that. I read the scp instructions to use this command and it states to copy a file from a local to a remote system run the following command:  
$ scp file.txt `remote_username@10.10.0.2:` /remote/directory

so I wrote the command with my details:  
`$ scp cfg_gateway.sh cadams@VADR-LPT-CADAMS: root@192.168.2.2`

and still got an error message–` root@192.168.2.2: No such file or directory`.

Can you please explain how to do this, maybe an example of how to write the command?

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 11, 2020, 5:25pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/6 "2020-08-11T17:25:21Z")

</div>

I believe I finally got the file copied to the mangoh red by going to the actual location of the file and copying the directory address and pasting it in the command, however after ssh’ing into the red and running the command # ./cfg\_gateway.sh I get this error:

-sh: ./cfg\_gateway.sh: Permission denied

How can I fix this? Please

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 11, 2020, 7:16pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/7 "2020-08-11T19:16:45Z")

</div>

Welp I have solved it again…  
The reason my permission was denied is due to me only having read/write permissions on the cfg\_gateway.sh file. I fixed this by ssh’ing into the device, changing the directory with # cd /tmp, then using the checking my permissions using the command # ls -l, when I saw that I did not have execute permission on the file I gave myself permission by using the command # chmod u+x cfg\_gateway.sh. The u stands for user, the + stands for add, the x stands for execute. Read [this](https://www.howtogeek.com/437958/how-to-use-the-chmod-command-on-linux/) page if you would like to learn more about giving permissions to read/write/execute certain directories or files

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 16, 2020, 12:06am UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/8 "2020-08-16T00:06:48Z")

</div>

@jyijyi When I type echo 2 \> /sys/class/gpio/export I get an error saying  
bash: /sys/class/gpio/export: Permission denied

How do I get around this?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 16, 2020, 2:53am UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/9 "2020-08-16T02:53:02Z")

</div>

What is the return of

ls /sys/class/gpio

Also what is the return of the AT command "AT+wiocfg? "

---

<div class="post-metadata">

**Author:** ![christopheradams1](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@christopheradams1](https://mangoh.discourse.group/u/christopheradams1)\
**Post date:** [August 16, 2020, 5:30pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/10 "2020-08-16T17:30:21Z")

</div>

Here is what I get after typing ls /sys/class/gpio

 ![Screenshot from 2020-08-16 12-27-29](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/4/4195c93e31cf83b51c1265970b1c276e40de1ee7.png)

Here is what I get after typing AT+wiocfg  
 ![Screenshot from 2020-08-16 12-30-00](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/e/ed2d9c37b7261c71c1f63fc65c73f6e469182aaf.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 16, 2020, 10:13pm UTC](https://mangoh.discourse.group/t/wp7702-how-to-enable-ethernet-iot-card/5001/11 "2020-08-16T22:13:47Z")

</div>

Are you typing " ls /sys/class/gpio "in pc?
