Popis: |
Diplomsko delo predstavi definicijo, zahteve in komunikacijske protokole polnilnih postaj. Osrednja tema je odprtokodna polnilnica za električna kolesa, ki za centralno enoto uporablja Raspberry Pi 4. Navedene so funkcionalne zahteve in zahteve strojne opreme projekta, natančneje pa je opisan proces načrtovanja in implementacije odjemalca polnilne postaje. Odjemalec je napisan v jeziku Golang, za komunikacijo s centralnim sistemom pa uporablja OCPP protokol, ki temelji na Websockets protokolu. Naštete in bolje predstavljene so komponente odjemalca, njihovo delovanje in povezovanje komponent med seboj. V nadaljevanju je opisan proces inicializacije, konfiguracije odjemalca ter zaporedje pošiljanja sporočil in implementacija nekaterih delov poslovne logike. Prav tako je krajše predstavljeno testiranje, tehnike testiranja odjemalca in problematika pri testiranju. Projekt zajema tudi storitvi Graylog in Mender, ki skrbita za posodabljanje programske opreme, dostop do gostiteljske naprave in vpogled v izvajanje odjemalca. Povzeto je delovanje, postavitev in komponente omenjenih storitev, ki se jih uporablja v testnem in produkcijskem okolju. V zaključku je predstavljena refleksija na uspeh projekta, ki zajema možne izboljšave in trenutne pomanjkljivosti. The thesis starts with examining the definition, requirements and communication protocols used in charging stations. The core of the thesis is an open-source charging station for electric bikes, which uses a Raspberry Pi 4 computer as its processing unit. Given the specific functional and hardware requirements, the thesis reports on the planning and implementation phase of the charging station. The client for the charging station is written in Go and uses OCPP protocol, which is based on Websockets, to communicate with the Central System (back-end). Moreover, the client’s core and auxiliary components, their functionality and connection between components is elaborated. Furthermore, the initialization and configuration processes are outlined, as well as the communication protocol’s message sequence, which is essentially business logic. Also, the testing of the client and its components are briefly explained. The setup and use case of external services, such as Graylog, a logging server, and Mender, a Over-the-Air update server, is briefly put to words. In the conclusion, the success of the project is reflected upon, and advantages, future improvements and the impact of the project are discussed. |