HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Certification FCC CE FCC Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: ‐Reorient or relocate the receiving antenna. ‐Increase the separation between the equipment and receiver. ‐Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. ‐Consult the dealer or an experienced radio/TV technician for help. To assure continued compliance, any changes or modifications not expressly approved by the party responsible for compliance could void the user’s authority to operate this equipment. (Example‐ use only shielded interface cables when connecting to computer or peripheral devices) FCC Radiation Exposure Statement This equipment complies with FCC RF radiation exposure limits set forth for an uncontrolled Environment. This equipment should be installed and operated with a minimum distance of 20 centimeters between the radiator and your body. This transmitter must not be co‐located or operating in conjunction with any other Antenna or transmitter. The antennas used for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co‐located or operating in conjunction with any other antenna or transmitter. This equipment complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) This device must accept any interference received, including interference that may cause undesired operation. Caution! The manufacturer is not responsible for any radio or TV interference caused by unauthorized modifications to this equipment. Such modifications could void the user authority to operate the equipment. ...
Page 8
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Fig 2: Board Details The STCT_IOG1 board can act as an automation solution. IOT Gateway functions as a gateway between a ZigBee network and an IP network through Ethernet and Wi-Fi. On the ZigBee network side, it acts as a node talking to a ZigBee enabled devices.
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 2 Bringup Procedures The board can be booted in 2 modes 1. USB boot mode 2. SPI boot mode Boot mode is selected by the headers H1 and H2. If user need usb boot mode he need to place jumpers on both H1 and H2 headers. If no jumpers are placed on H1 and H2 the board will be in SPI boot mode.
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 2.1.2 Board detection in PC If the board is connected to the PC in USB boot mode it will listed as “Freescale Semiconductor, Inc” in the output of lsusb command 2.1.3 Loading Uboot image An image for uboot is loaded into RAM, using usb boot mode and imx_usb_loader tool.
Page 11
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Programming to Flash : =========================================================== Writing uboot image =========================================================== tftp 0x80800000 iog1_uboot sf probe sf erase 0x0 0x40000 sf write 0x80800000 0x400 0x40000 After writing uboot image, reboot the board by power off/on. Now uboot automatically will be loaded. Stop uboot at the end stage as discussed earlier. =========================================================== Writing kernel image ===========================================================...
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 2.1.5 Setting environment variables After writing all images into flash, we have to set environment variables according to written images. Based on these environment variables only, uboot will load all other images. =========================================================== setenv bootargs 'console=ttymxc0,115200 root=/dev/ram rw ramdisk_size=80000' Setenv loadimages 'sf probe;sf read 0x82600000 0x500000 0x1400000;sf read 0x88000000 0x1900000 0x20000;sf read 0x82000000 0x100000 0x400000' Setenv bootcmd 'run loadimages;bootm 0x82000000 0x82600000 0x88000000'...
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 2.2.2 Loading images from flash If the board is programmed with all images, then images will be loaded and gateway command prompt will be appeared automatically as already board is programmed when the board is powered up. 2.3 SD boot mode In this mode, board will boot from the images on SPI NOR flash and file system will be load from SD card.The boards once programmed with bootloader images...
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 $ tar –xvfcore-image-minimal-imx6slzbha.tar.bz2 –C /media/<card_partition> After untar the filesystem, run $ Sync Then unmount the SD card 3 Testing Interfaces 1.WiFi Interface 2.Bluetooth Interface 3.GPIO (LED) Interface 4.ZigBee Interface 5. jffs2 partition 3.1 WiFi Interface To check WiFi interface run the IOTG_WIFI.sh acript at /home/root/ using following command.
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 3.3 GPIO Interface To access any GPIO pin by user, user need to export particular gpio to user space. Then user must set direction (in & out) for particular pin based on requirement. Then user can set the values to particular gpio pin. For testing the GPIO pins, execute following commands.
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Example of Input GPIO4_IO21 XX=(4-1)*32+21 = 117 For checking the value of Input Gpio : Cat /sys/class/gpio117/value 3.3.3 Output GPIO Use can access 4 output Gpio, which are following GPIO3_IO20 : Gpio number 84 GPIO3_IO29 : Gpio number 93 GPIO4_IO02 : Gpio number 98 GPIO5_IO05 : Gpio number 101 Example commands for GPIO3_IO29...
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Note: Some Useful commands for providing access and permission for zigbee over telnet. Need to be run on command prompt root@imx6slevk:~#, ln –sf /bin/login /usr/bin/login chmod 777 –R zigbee/ 3.5 jffs2 Partition In SPI flash there are a 41MB jffs2 partition which can be used as storage for files. And file will be present there on every boot till then we delete those from jffs2 partition.
Page 18
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 gawk, wget, git-core, diffstat, unzip, texinfo, gcc-multilib, build-essential, chrpath, libsdl1.2-dev, apt-file 1. Go to source/yocto directory cd source/yocto/ 2. Give command MACHINE=imx6slzbha source ./setup-environment build This command sets the build environment and automatically you will be moved to build directory.
Page 19
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Steps are as follows 1.Go to directory tools 2. you create a directory called ramdisk in the directory tools. 3. untar the filesystem image to this ramdisk folder using the command sudo tar -xjf ../source/yocto/build/tmp/deploy/images/imx6slzbha/core-image-minimal- imx6slzbha.tar.bz2 -C ramdisk/ 4.Run command sh create_ramdisk.sh 5.
HARMAN_STCT_IOG1_USER_GUIDE Rev. C1 Setenv tftpimages 'tftp 0x82600000 iog1_ramdisk;tftp 0x88000000 iog1_dtb;tftp 0x82000000 iog1_uImage' Setenv bootcmd 'run tftpimages;bootm 0x82000000 0x82600000 0x88000000' Setenv bootargs 'console=ttymxc0,115200 root=/dev/ram rw ramdisk_size=256000' saveenv 3. Now boot the board by giving 'boot' command and it will boot with the new ramdisk images that are created.
Need help?
Do you have a question about the IoT-GW-02 and is the answer not in the manual?
Questions and answers