Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

PiZero > Communication protocol v0.12 > PiZero / ESP8266

This article is for my entry to Pi Zero contest 2016.
https://hackaday.io/project/9526-bring-your-own-pizero-byop

format

  • Terminating with <LF>
  • 115200 8N1
    • 8 data bits
    • no parity
    • 1 stop bit

user commands

  • hello
    • command: hello,[serial number],[name]<LF>
    • return: hello,[name]<LF>
  • check
    • command: check<LF>
    • return: check,[number of messages]<LF>
  • get
    • command: get<LF>
    • return: get,[SenderName],[1st message string],[isSecret(0|1)],[postDate]<LF>
    • memo: get command takes 2000 msec wait to show the sender on 8x2 LCD before showing the message
  • post
    • command: post,[receiver],[message],[isScret(0|1)],[postDate]<LF>
    • return: post,ok<LF>
    • lcdmsg: msg,posted
  • bye
    • command: bye<LF>
    • return: bye,[name]<LF>

For the public message(isSecret==false), the message length for the post is maximum 16 (= 8x2).
For the private message(isSecret==true), the message length can have any length, because the message will not be displayed on the 8x2 LCD, but will be sent through UART.

administrator commands

  • storage
    • command: storage<LF>
    • return: storage,[current usage count]/[maximum storage],<LF>
    • e.g. storage,8/200
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What are the problem?