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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Blog PSoC 4 Pioneer Kit Community Project#040 - PioneerPnPSensors
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kanatomi
  • Date Created: 26 Jun 2013 9:01 AM Date Created
  • Views 616 views
  • Likes 0 likes
  • Comments 2 comments
Related
Recommended

PSoC 4 Pioneer Kit Community Project#040 - PioneerPnPSensors

kanatomi
kanatomi
26 Jun 2013

Hello!

 

This project demonstrates the PioneerKit Plug and Play Sensor application for direct connection with SNTerminal running on Desktops and Mobiles giving full access to monitor and control the key status, capsense slider, internal temperature, and LED light parameters: color, brightness and contrast.

The key selects between the last three light control parameters, the color, brightness and contrast, which selected parameter is then controlled by sliding the capsense 5 segments. The state can be observed and modified with the SNTerminal app, which communicates with the board via UART interface and the compact Sensor Network Protocol.

 

Project schematic:

 

image

 

Firmware description:


Firmware is composed of main.c containing the application, and the sn_cfmsg.c/.h containing the SNP Compact Frame/Message Layers.

 

The ISOTEL SNP - Message Layer specifications provide a compact math enriched content description, making your device a 'web' like box. Message layer defines a two kind of messages:


  1. content description, the static part typically exchanged only once contains elements such as text formatting, data structures, variables, expressions with precision and accuracy calculation, ideal for sensor applications,
  2. dynamic part consisting of arguments exchanged in PSoC4 native format, and are exchanged on value change, either on PSoC4 side or user side. No conversion needs to be done on the PSoC4 side for either input or outpt, preserving maximum precision, accuracy, and releasing the CPU power requirements.

 

Regarding this project, the PSoC4 application needs to implement three functions only:

  • sn_cfmsg_reqdesc: provides an app content description, which are send out only on request,
  • sn_cfmsg_send: provides parameters,
  • sn_cfmsg_recvargs: a handle that receives parameters from user input.

 

 

Hardware connections:


You will need to wire the UART TX and RX pins between the PSoC 4 and the PSoC 5LP on the pioneer kit (See picture below).  There are no other hardware connections.

image


Test your project:

 

  • You will need to download the SNTerminal software written in JAVA.
  • Program PSoC 4 Pioneer Kit with attached PioneerPnPSensors project.
  • Double Click on the SNTerminal-130624-1.jar software should start the application automatically if JAVA JRE is installed correctly. If serial device driver is properly installed it will be listed on the bottom line of the start page. Click on it, enter the COM settings below and click OK. If everything is okay the DeviceView dialog appears as shown in the picture below.

 

     imageimage

 

Please read SNTerminal User’s manual or watch the video for more details.

 

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


I hope this example can help you out in your design.

 

Best,

Tomi

Attachments:
PioneerPnPSensors.cyprj.Archive01.zip
  • Sign in to reply
  • fago
    fago over 3 years ago in reply to uplatise

    IDM is not working with my PSoC4 Piooner Kit. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • uplatise
    uplatise over 3 years ago

    Update:

    • SNTerminal progressed into IDM https://www.isotel.org/idm/
    • when writing descriptor messages (Message Layer), see documentation at: https://docs.isotel.org/isn/
    • there is also a newer c-lib on github: https://github.com/Isotel/libisn, with doc/ (use doxygen to compile) with isn_uart and isn_usbuart drivers supporting PSoC4 and PSoC5
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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