Difference between revisions of "VAYU2"

From Yantrr Wiki
Jump to: navigation, search
(Software Setup Guide)
(Software Setup Guide)
Line 157: Line 157:
 
  /bin/echo 'All done'
 
  /bin/echo 'All done'
  
{{Box-Notice | text= For users using pre-compiled Debian Yantrr Image, no need of manual execution of above boot_run.sh. The script is configured to auto execute on board boot up using cronjob entry.}}
+
{{Box-Notice | text= With pre-compiled Debian Yantrr Image, no need of manual execution of above boot_run.sh. The script is configured to auto execute on board boot up using cronjob entry.}}
  
 
=Applications=
 
=Applications=

Revision as of 07:43, 1 August 2017

Overview

Quick Start Guide

Getting Started

Setting up the system

  1. Place a micro-SIM in the SIM card slot and connect a respective antennas to the SMA connectors.
  2. Mount the VAYU2 cape on Beaglebone Black.
  3. Ensure the power jumper J1 with all other jumpers according to your application use are in place.
  4. Connect the extra USB cable provided with the cape between Host port on Beaglebone Black and miniUSB device port on Cape.
  5. To avoid the bug on Beaglebone black with external USB hubs, please connect a USB device (Pendrive etc.) to extra host port on the cape.
  6. Now power up the full setup using a 5V DC adapter(min 2.5A) to barrel jack. D2 LED on the cape will glow along with LEDs on the Beaglebone black.
Note: Before powering up ensure correct software image is loaded in Beaglebone black or VIBE/VIBE2

Before proceeding further ensure D2 LED is glowing properly. Make sure that the adapter being used is of proper rating and has been connected properly.

Do not try to power up using USB cable alone. Always power up system with a DC adapter. Also while disconnecting power, USB cable should be removed before the DC adapter.

Accessing the Setup

  • Through USB

For accessing the above setup, first connect the USB cable between Beaglebone Black's USB Client port and USB Host port of Desktop/Laptop. Once it get properly connected to Desktop, a user can access the setup using predefined static IP address 192.168.7.2

On Windows : (Using Putty Client)

On Linux :

ssh root@192.168.7.2

Default password is root.

  • Through Ethernet

In Yantrr Pre-compiled images, the Ethernet IP address is set to static IP 192.168.1.150. If you are using DHCP IP then Ethernet IP be should be know and the same should be used while making ssh connection.

On Windows : (Using Putty Client)

On Linux :

ssh root@192.168.1.150

Default password is root.

Modem Ports

VAYU2 has an option between 3G/HSPA+ and 4G/LTE,CAT4 modem for WAN connectivity.

  • 3G Modem : VAYU2 3GUC20-x comes with Quectel UC20 3G modem.
  • 4G Modem : VAYU2 4GEC25-x comes with Quectel EC25 4G modem.

Both 3G/4G modem creates 5 ports :

  1. /dev/ttyUSB0
  2. /dev/ttyUSB1  : For GPS NMEA message output
  3. /dev/ttyUSB2  : For AT commands
  4. /dev/ttyUSB3  : For PPP connections or AT commands
  5. /dev/cdc-wdm0  : QMI WWAN Port


Modem Control

Please ensure that the modem is properly turned on before ppp connections can be established. If PPP connection cannot be established properly, soft reset the modem following the timing procedures for modem.

The modem can be powered on/off by either using the push button switch or GPIO45.

Power on

The module will be turned off after power-on(when power is supplied) normally. In the state of power off, provide a high level pulse atleast for 100 Milliseconds to ON/OFF PIN to turn on the module by either toggling the push button switch or by cycling the GPIO through Low-High cycle.

The default state of ON/OFF GPIO should be low.

cd /sys/class/gpio
echo 45 > export
cd gpio45
echo “low” > direction
cd /sys/class/gpio/gpio45
echo "high" > direction
sleep 0.1
echo "low" > direction

Check that modem is visible on the USB bus by :

root@Yantrr:~# lsusb 
Bus 001 Device 004: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 001 Device 003: ID 05c6:9003 Qualcomm, Inc.
Bus 001 Device 002: ID 0424:2412 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

In Yantrr Pre-Compiled VAYU2 Boot Image, for ease of user these regular commands with the GPIOs have been created as functions : pinexp, setout, setin, pinread.

pinexp 45
pinexp 60
setout 45 low
setout 60 high

Power off

In the state of Power On, provide atleast a 600 Milliseconds low level pulse to ON/OFF PIN to turn off the module.

cd /sys/class/gpio/gpio45
echo "high" > direction
sleep 0.6
echo "low" > direction

Soft Reset

To soft reset the modem, cycle the Modem On/Off pin through a Power-Off and then Power-On cycle. i.e.

  1. Power Off the Modem.
  2. Wait for 1-2s atleast.
  3. Power on the modem.

Hard Reset

There might arise situations where modem does not seem to be responding to any commands issued on AT commands port or it cannot be turned on/off. In such scenarios, issue hard reset to the modem. It can be done by either toggling Switch S2 for atleast 100ms or pulling GPIO60 low for 1s and then setting it high again.

cd /sys/class/gpio/
cd gpio60
echo "low" > direction
sleep 0.1
echo "high" > direction

Please use hard reset conservatively. Soft reset should be preferred under most conditions.

AT Commands

All the AT commands can be executed on the serial port /dev/ttyUSB2 with baud rate of 115200 8N1.

Note : AT commands manual available on request. Please contact Yantrr support.

Software Setup Guide

For use of VAYU2 with Beaglebone Black, we recommend to use pre-compiled Debian Yantrr Image. The pre-compiled Debian Yantrr Image has all the settings pre-configured for use of its various features such as 3G/4G modem, GPS, USB Host Port, 2 RS-232 Ports,etc.

Following instructions are only for Users compiling Beaglebone Black's Debian Image from scratch for VAYU2 use.

For compiling Beaglebone Black Debian Image from scratch follow Robert C Nelson BBB Wiki and add needed patches, install Quectel's WCDMA/LTE Linux USB Drivers while compiling.

Detailed compilation steps updating soon.

Also in the Debian Yantrr Image, for configuring various modules of cape at every boot up a boot_run.sh script is executed. Its content is

root@Yantrr:~# cat boot_run.sh
#!/bin/sh -e
/bin/sleep 10
/bin/echo ==============================
/bin/echo 'Setting pins'
/root/bin/pinexp 45			# Modem ON/OFF Pin
/root/bin/pinexp 60			# Modem RESET Pin
/root/bin/pinexp 50			# Ext-GPS Module RESET Pin
/root/bin/setout 50 high
/root/bin/setout 60 high
#For Quectel Modems
/root/bin/setout 45 low
/bin/sleep 4
/root/bin/setout 45 high		# Modem Power ON Sequence
/bin/sleep 0.1				#
/root/bin/setout 45 low			#
cd /lib/firmware
/bin/echo BB-UART4 > /sys/devices/platform/bone_capemgr/slots		# For Ext-GPS Module's Serial Port
/bin/echo BB-UART1 > /sys/devices/platform/bone_capemgr/slots		# For VAYU2's RS-232 Serial Port 1
/bin/echo BB-UART2 > /sys/devices/platform/bone_capemgr/slots		# For VAYU2's RS-232 Serial Port 2
#/bin/stty -F /dev/ttyO4 19200 raw					# Setting Ext-GPS Module's UART in raw mode
#ln -s /dev/ttyO4 /dev/gps1
#ln -s /dev/pps1 /dev/gpspps1
/bin/echo 'Done with pins and devices'
/sbin/ip route list exact default
/bin/echo 'All done'

With pre-compiled Debian Yantrr Image, no need of manual execution of above boot_run.sh. The script is configured to auto execute on board boot up using cronjob entry.

Applications