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
Forum 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!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 11 replies
  • Subscribers 30 subscribers
  • Views 4026 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#040 - PioneerPnPSensors

kanatomi
kanatomi over 12 years ago

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.

 

image     image

 

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

 

 

 

Make Your PioneerKit Mobile by using an Android Phone


 

we have finally made the PioneerKit PsoC4 work with your Android (version 3.4+) phone!

 

The onboard PsoC5, which is used as a programmer and UART serial access with the PsoC4 silicion, must be reprogrammed to behave as standard profilic USB<->UART adapter, what is very easy since the PsoC5 features an USB bootloader.

 

Steps:

  1. Unplug the PionnerKit
  2. Keep holding the PioneerKit's reset (SW1) button, plug it back to your USB port, wait at least 1-2 seconds
  3. Run app:  PSoC Creator select > Tools > Bootloader Host
  4. Click on button: Filter, and enter: VID as 0x04B4, PID as 0xF13B
  5. Load the usb2uart.cyacd file, by opening it by pressing the Open toolbar icon
  6. Press program device.

 

That's it.

 

You may use/access the PioneerKit board from your Android device immediately. To use it on Windows use the device drivers below.

 

image

 

 

DO NOT FORGET TO FIRST DOWNLOAD THE PsoC4 APPLICATION!

 

To be able to download your app to PsoC4 you must restore the PsoC5 firmware. To do that, follow again above steps and use the file KitProg.cyacd file attahed below as well.

 

Note: Since the latest version of the SNTerminal brings paragraphs (\n) besides the line-breaks (represened by \r character now) we have also updated the PsoC4 project. You may not need to update it, but there will be some more spacing between the lines, since \n is now treated as new paragraph.


PS: Please update to the latest Android version


Please also use the latest PSoC4 project attached below, with minor updates in the SNP messages.

 

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

 

Best, Tomi

Attachments:
usb2uart_cdc.inf.zip
KitProg.cyacd.zip
usb2uart.cyacd.zip
PioneerPnPSensors.cyprj.Archive01.zip
  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago +2
    Hello! I am new in the topics around pioneer board. First I wanted to try to install on it the Project#040 - PioneerPnPSensors with the nice SNTerminal. First I started from the 50 project boundle archive…
  • jesusantoniocar
    jesusantoniocar over 12 years ago +1
    Hello Tomi. Thanks for this project. Psoc 4 offer powerful tools to make applications looks like this. i have reading about sensors community and can say that they are doing interesting projects in this…
  • kanatomi
    kanatomi over 12 years ago +1
    Hi, We have just released the Android version that offers full access: - https://vir.isotel.eu/SNProtocol/wiki/SNTerminal-DownloadTerms that can access devices over the phone's USB, which is otherwise…
Parents
  • uplatise
    uplatise over 12 years ago

    Updated my PioneerKit and wow, you can really do a demo of a PSoC PioneerKit just anywhere:

     

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

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • uplatise
    uplatise over 12 years ago in reply to uplatise

    Video had some problems but it is hopefully fixed now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.wbz
    cy.wbz over 12 years ago in reply to uplatise

    Uros,

     

    That's seriously awesome. Great example and video! Many thanks for posting this.

     

    Best,

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • cy.wbz
    cy.wbz over 12 years ago in reply to uplatise

    Uros,

     

    That's seriously awesome. Great example and video! Many thanks for posting this.

     

    Best,

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • uplatise
    uplatise over 12 years ago in reply to cy.wbz

    Hi Matt,

     

    in the latest version there is a new control view for easy and quick access, that might remind you to a simple TV remote controller image

     

    Regards, Uros.

     

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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