Main handler - responsible for error handling, logging and network connection management.Data handler - stores decoded data in the database.Event handlers - generate events based on the information in the position object.Utility handlers - range from handlers calculating travelled distance to handlers that perform reverse geocoding.Protocol decoder - converting message in protocol-specific format into a one or several universal position objects.Protocol encoder - converting universal command model into a message format specific to the protocol.String decoder (only text-based protocols) - converts incoming network buffer into a text message ready for parsing.String encoder (only text-based protocols) - converts outgoing text message into a network buffer.Frame decoder (only TCP protocols) - splits incoming buffer into full single frames/messages, which can contain one or more location data points.Each protocol has its own pipeline, but most of the supported protocol include following main handlers in their pipelines: Outgoing messages (commands) are going in the opposite direction and are starting as an internal command model and eventually get converted into binary buffers that are sent to devices. Incoming messages from GPS devices are received as binary buffers and are separated into frames, decoded into an internal position model and eventually stored in the database. Traccar system is based on the Netty framework.įor each network channel or connection Traccar creates a pipeline of event handlers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |