summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Protocol: reimplementation of tlv_get according to new spec.Gravatar Ramūnas Mažeikis 2019-06-041-11/+66
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: fixed typos and permissions.Gravatar Ramūnas Mažeikis 2019-06-021-0/+0
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: fixed a critical bug.Gravatar Ramūnas Mažeikis 2019-06-021-1/+1
| | | | | | Look at the diff and it will be obvious what was fixed. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Tweaked function declarations and build files to make it build.Gravatar Ramūnas Mažeikis 2019-05-294-11/+15
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Removed tlv_private.h from ./src/common/.Gravatar Ramūnas Mažeikis 2019-05-291-1/+0
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: now renamed things properly and updated build files.Gravatar Ramūnas Mažeikis 2019-05-294-51/+5
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: renamed some files.Gravatar Ramūnas Mažeikis 2019-05-292-0/+0
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: new and improved tlv_destroy.Gravatar Ramūnas Mažeikis 2019-05-291-2/+18
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: more code and a tutorial.Gravatar Ramūnas Mažeikis 2019-05-291-71/+20
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Screen: very shoddy implementation of message code.Gravatar Ramūnas Mažeikis 2019-05-283-3/+14
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Device: accidentally broke code by renaming function.Gravatar Ramūnas Mažeikis 2019-05-281-14/+55
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: fixed a stupid.Gravatar Ramūnas Mažeikis 2019-05-281-5/+5
| | | | | | Had a local variable with the same name as argument. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: renamed functions to fit the "namespace".Gravatar Ramūnas Mažeikis 2019-05-281-5/+8
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: new functions and associated docs.Gravatar Ramūnas Mažeikis 2019-05-281-0/+32
| | | | | | | | | | | | The header declares new functions: * tlv_init() * tlv_destroy() * tlv_push() * tlv_get_raw() * tlv_raw_size() Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Screen: adjustments, bug fixes and abstraction.Gravatar Ramūnas Mažeikis 2019-05-282-9/+22
| | | | | | | Line drawing code no longer assumes a particular screen as long as it's interface includes OLEDDisplay. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Screen: implementation of drawing and trivial docs.Gravatar Ramūnas Mažeikis 2019-05-273-6/+31
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Screen: More implementation details.Gravatar Ramūnas Mažeikis 2019-05-272-25/+45
| | | | | | Only a single function is a stub now --- the actual drawing. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Device: partial implementation of line scrolling logic.Gravatar Ramūnas Mažeikis 2019-05-272-0/+74
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Merge branch 'proto_stdio_threads'Gravatar Gediminas Jakutis 2019-05-263-0/+200
|\ | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: improve threading logic on null proto.Gravatar Gediminas Jakutis 2019-05-262-41/+77
| | | | | | | | | | | | | | | | Functions now prevent interruptions that can produce an inconsistent state in the program. Also, cosmetic changes. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: fixed some dumb mistakesGravatar Paulius Ratkevičius 2019-05-212-0/+4
| | | | | | | | Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
| * daemon: implemented stdio interfacesGravatar Paulius Ratkevičius 2019-05-212-5/+52
| | | | | | | | Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
| * daemon: added stdio (null) im proto stubs.Gravatar Gediminas Jakutis 2019-05-213-0/+113
| | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | Merge branch '31-Net-Protocol-Handling'Gravatar Gediminas Jakutis 2019-05-269-67/+394
|\ \ | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | common: cosmetic changes.Gravatar Gediminas Jakutis 2019-05-263-4/+48
| | | | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | Protocol: updated get_tlv and more docs.Gravatar Ramūnas Mažeikis 2019-05-221-0/+2
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: fixed a off-by-one error when copying a string.Gravatar Ramūnas Mažeikis 2019-05-221-1/+1
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: updated docs for functions that survived redesign.Gravatar Ramūnas Mažeikis 2019-05-221-0/+13
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: finished reimplementation.Gravatar Ramūnas Mažeikis 2019-05-221-1/+9
| | | | | | | | | | | | | | | | | | Now protocol only deals with parsing and forming of packets. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: reimplemented push_bytes and push_tlv_header.Gravatar Ramūnas Mažeikis 2019-05-222-5/+24
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: reimplemented get_tlv and added tlv_data_size.Gravatar Ramūnas Mažeikis 2019-05-221-7/+31
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: tossed a bunch of function out the window.Gravatar Ramūnas Mažeikis 2019-05-222-52/+1
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: reimplemented push_string and push_fpi1.Gravatar Ramūnas Mažeikis 2019-05-221-2/+18
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: amendments to interface functions.Gravatar Ramūnas Mažeikis 2019-05-222-20/+18
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: interface redesign.Gravatar Ramūnas Mažeikis 2019-05-224-362/+42
| | | | | | | | | | | | | | | | | | Every function is a stub now. Reimplementaion coming up. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Merge branch '31-Net-Protocol-Handling'Gravatar Gediminas Jakutis 2019-05-223-17/+25
| |\ \ | | | | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| | * | Protocol: attempted to fix stupids.Gravatar Ramūnas Mažeikis 2019-05-223-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * | Protocol: fixed type errors.Gravatar Ramūnas Mažeikis 2019-05-223-15/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added const where appropriate to satisfy stricter type checking of C++. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * | Merge branch '31-Net-Protocol-Handling'.Gravatar Ramūnas Mažeikis 2019-05-223-0/+0
| | |\ \ | | | | | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * | | Protocol: switched files to C++ and did minor fixes.Gravatar Ramūnas Mažeikis 2019-05-223-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | The code has a chance to compile now. No changes to actual build files yet.
| * | | | device: actually make it all build and such.Gravatar Gediminas Jakutis 2019-05-229-71/+192
| | |/ / | |/| | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | | device: fix shoddy file permissions.Gravatar Gediminas Jakutis 2019-05-213-0/+0
| | | | | | | | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | | device: strip CRs.Gravatar Gediminas Jakutis 2019-05-211-25/+25
| |/ / | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | Protocol: moved udp code out of main.Gravatar Ramūnas Mažeikis 2019-05-214-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An effor was made to increase modularity of device code. It was a partial success. IP adress, communications port, and wifi login details had to be made static and visible in main. Time is scarce and I am not about to push this further. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: common no longer has device-specific implementations.Gravatar Ramūnas Mažeikis 2019-05-213-55/+5
| | | | | | | | | | | | | | | | | | Forgot to remove device-specific code from common protocol code. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: implementation of device-side protocol.Gravatar Ramūnas Mažeikis 2019-05-213-40/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | Parts of protocol specific for device are implementepd to reflect the fact that the device is a client. This effectively means that device gets a single connection only and severe memory restrictions about which the daemon might get informed about in the future. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: changes to interface and some re-implementation.Gravatar Ramūnas Mažeikis 2019-05-215-77/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most functions exposed in protocol.h take a connection descriptor (cd_t) as first argument. This allows for multiple connections. Device gets only one connection which means that cd_t is effectively 0 all the time. Additionaly, any function that actually does anything with a connection descriptor instead of just passing it to another function must be implemented separately in device and daemon. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: implemented request and reply pushing to packet.Gravatar Ramūnas Mažeikis 2019-05-202-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First implementation of complete protocol interface. While the first implementation does compile, the interface might change due to demands from other parts of the project. For now reqest is a tlv that is an unsigned int which represents what message to repeat from daemon. A reply is also a tlv made of two parts --- message sequence number of type msg_ixd_t and the actual null terminated string. All of the above is subject to change. More docs. Doxygen is on the way. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: Implemented protocol error reporting.Gravatar Ramūnas Mažeikis 2019-05-193-62/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now public functions of the protocol can return an error code. More work is done on actual logic. Protocol code has bare-bones doxygen documentation. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * | Protocol: more work on protocol implementation.Gravatar Ramūnas Mažeikis 2019-05-193-26/+104
| | | | | | | | | | | | | | | | | | | | | | | | Additional functions implemented for protocol and basic functions to work with uuid. Source is buildable but actual build files are not edited to accomodate the changes. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>