Changes between Version 36 and Version 37 of expansion/gw16122


Ignore:
Timestamp:
04/24/2018 11:35:18 PM (7 years ago)
Author:
Ryan Erbstoesser
Comment:

update uart example with more info

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16122

    v36 v37  
    554554=== UART RX/TX Example ===
    555555
    556 This code was provided by a Texas Instruments (TI) employee on the E2E Support forums.
     556This sample example code was provided by a Texas Instruments (TI) employee (Prashanth S) on the [https://e2e.ti.com/support/wireless_connectivity/proprietary_sub_1_ghz_simpliciti/f/156/p/586620/2154741#2154741 E2E Support forums] - (filename download on the forum post is: 4034.uartRxTx_CC1350_LAUNCHXL_TI.zip).
     557
     558At a high level, this example allows for you to type from a keyboard to an open UART on each side and the data will be sent to the other side.
     559
     560One single project is designed to do TX and RX (one firmware file).
     561
     562Download the pre-compiled firmware here:
     563[http://dev.gateworks.com/gw16122/uart-rx-tx-example-firmware/ uartRxTx_CC1350_LAUNCHXL_TI.out]
     564
     565Using a Windows or Linux desktop/laptop PC, flash this firmware to the GW16122.
     566
     567Connect the GW16122 to the desired system where you will then open the UART communication.
    557568
    558569This example exposes 2 serial ports to the host that the GW16122 is connected to.
    559  *Linux Example
    560   * /dev/ttyACM0
     570 * Linux Example
     571  * /dev/ttyACM0 (use this first UART)
    561572  * /dev/ttyACM1
    562 
    563 This example code
     573 * Windows Example
     574  * COM6 (use this first UART)
     575  * COM8
     576
     577Open the serial port /dev/ttyACM0 on the host using a terminal program of your choice, such as screen / picocom or Putty using 115200 baud rate and turn on local echo.
     578
     579You can type the data you want to send, but ***must*** press the 'Enter' key to actually send the data.
     580
     581Type a message on the console on the TX side, like so:
     582{{{
     583hi, hello world!
     584}}}
     585 
     586
     587The other end will print the received data with a string like so:
     588{{{
     589rx data: hi, hello world!
     590}}}
     591
     592This example code uses the following LEDs on the GW16122:
    564593 * LED D1 toggles green when it sends
    565594 * LED D2 toggles red when it receives
    566595
     596The RF is at 500 kbps by default but can be adjusted in the source code.
    567597
    568598