element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Blog Part-2: Executing SMAC connectivity demo application using KW41Z freedom board on terminal window
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bheemarao
  • Date Created: 24 Oct 2016 7:36 AM Date Created
  • Views 772 views
  • Likes 0 likes
  • Comments 0 comments
  • ble/802.15.4 integrated transceiver
  • frdm-kw41z
  • 802.15.4
Related
Recommended

Part-2: Executing SMAC connectivity demo application using KW41Z freedom board on terminal window

bheemarao
bheemarao
24 Oct 2016

In continuation to Part-1 (Part-1: Getting started with FRDM-KW41Z [executing MKW41Z SMAC based Connectivity Test application]) of SMAC connectivity demo, we will see how to execute the demo application on hyperterminal.

 

Open a putty or tera term hyperterminal application and open a session to your  FRDM-KW41ZFRDM-KW41Z COM port(in my case com port connected is to com44

 

Configure the terminal with these settings:

115200 baud rate

No parity

8 data bits

1 stop bit

Start the application by clicking the "Resume" button:

 

image

You can see the execution of this board

 

image

Click on stop button as shown below:

image

Now connect the board-2 and perform the same operation of executing the debugging activity so that the program is flashed to the second board (board-2).

The board-2 is connected to com77 port in this case

image

Begin our Test:

 

Plug in both the boards to USB port of your computer and open the device manager from your control panel, you can see there are two com ports connected as shown below (in my case it is com77 and com 44)

image

image

The application displays a logo screen and waits for user intervention. When the [ENTER] key is pressed, the application will show the main menu. If any other key is pressed, the logo screen is redisplayed with on-screen instructions.

 

After pressing enter button you can see SMAC Software Demo Application menu as shown below i.e Connectivity test interface main menu

image

According to the above figure, the following keyboard keys have these functions described below:

 

• ‘t’—brings up the configuration menu for the transmitter in both PER and Range tests.

• ‘r’—brings up the configuration menu for the receiver in both PER and Range tests.

• ‘q’ — increments the channel number. If you press this key when the current channel is 26, the channel number changes to 11.

• ‘w’ — decrements the channel number. If you press this key when the current channel is 11, the channel number changes to 26.

• ‘a’ — increments the output power value. If the output power is at its maximum and you press this key, the output power goes to its minimum (in this case 0x00).

• ‘s’ — decrements the output power value. If the output power is at its minimum and you press this key, the output power goes to its maximum (in this case 0x20). These values are not mapped directly to the dBm values. Instead, the output power value is written to the appropriate register.

See the appropriate reference manual to determine the relationship between the selected value and power in dBm.

• ‘n’ — increments the length of the payload. This value is used in both the PER TX and Transmission Control tests to build up the payload.

• ‘m’ — decrements the length of the payload. The incrementation and decrementation are performed in the [17, 116] interval. All overflows at one end set the value at the other end.

• ‘k’ — increments the CCA threshold for the Carrier Sense test. In this test, the CCA before TX algorithm is implemented at the application level, and the channel idle threshold is established using this parameter.

• ‘l’ — decrements the CCA threshold for the Carrier Sense test.

• ‘d’ — increments the crystal trim register value. This option can be used with the "continuous unmodulated transmission" test and a spectrum analyzer to calibrate the carrier frequency. At the beginning of each test the value is written both in the corresponding register and in the flash memory. At transceiver initialization, the most recent value written is read from the flash memory and applied.

• ‘f’ — decrements the crystal trim register value. If pressed when the value is 0, the new value will overflow to the maximum allowed.

 

To start any test, you can follow the on-screen instructions. We are going with Packet Error Rate test

image

Both of the board comes in Tx mode by default as shown below:

 

In packet error rate we are transmitting XX numbers of packet from transmit window and checking the same number of packets are been received in receive window, and if there is error in receiving packets it will give the error rate.

For this we need to configure one of the boards to be in TX and other to be in RX mode. Press button ‘r’ on one of the terminal to change in rx mode as shown below:

image

In my setup COM44 is configured as receiver terminal and COM77 as Transmit terminal as shown above

Now press ‘2’ on both terminals to run as “Packet Error Rate Test”

image

You can see different options on the RX board now press ‘space bar’ to start receiving packets i.e the terminal is in receiving mode and keep in listening for the packets on the channel

image

Now in TX terminal

image

Press ‘1’ here in transmit terminal to send 25 packets it will ask TX interval in milliseconds i have given 100ms. Now press enter to send packets

image

Now you can see the sending packets from transmit window and same thing is received in receive window i.e in COM44 port terminal both happens simultaneously as shown below:

image

You can see the packet index along with RSSI during RX and average RSSI of the PER

 

The Video output execution is shown in below video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Happy Executing SMAC connectivity test on KW41Z (wireless MCU)...  image image image

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube