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>
- command:
- check
- command:
check<LF>
- return:
check,[number of messages]<LF>
- command:
- 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
- command:
- post
- command:
post,[receiver],[message],[isScret(0|1)],[postDate]<LF>
- return:
post,ok<LF>
- lcdmsg:
msg,posted
- command:
- bye
- command:
bye<LF>
- return:
bye,[name]<LF>
- command:
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
- command: