0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PiZero > Communication protocol v0.12 > PiZero / ESP8266

Last updated at Posted at 2016-02-16

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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?