معرفی شرکت ها


TrboDataSvc-0.0.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A collection of libraries to handle communication and interpretation of MotoTRBO Data Services (ARS, TMS, LRRP, Job Tickets, etc)
ویژگی مقدار
سیستم عامل OS Independent
نام فایل TrboDataSvc-0.0.8
نام TrboDataSvc
نسخه کتابخانه 0.0.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Natalie
ایمیل نویسنده natalie@natnat.xyz
آدرس صفحه اصلی https://git.natnat.xyz/natalie/TrboDataSvc
آدرس اینترنتی https://pypi.org/project/TrboDataSvc/
مجوز -
# trbo-data-svc This is a collection of multiple different libraries and programs that interface with MotoTRBO digital radios. Currently supported: - ARS - TMS - LRRP (50%) In the works: - Job Tickets - Impres OTA Battery Management (low priority, weird format) ## Basic Layout Most of the basic data services can be set up as such: from TrboDataSvc import ars def callback(rid, data): print("Got a message from radio id {}".format(rid)) return True listener = ars.ARS() listener.register_callback(callback) listener.listen() That's all you need! ## Further Documentation ### The callbacks The callback function definition should be in the following format: def callback_name(rid, data) Obviously the name can be whatever you want, but the arguments must be rid and data, in that order. The type of `data` and what it passes will differ between the different functions. It can be either an int, string, or dictionary. Additionally, the callback must return True on successful processing and False on unsuccessful processing. Returning true means an ACK gets sent to the radio when necessary. Examples of failed processing might be an exception, upstream server offline, etc. ### Listen function The listen function creates a separate process to process the incoming data. This creates a new Process for each listener. This shouldn't be a huge deal but on embedded systems it might be something to consider as a new Process creates an entirely new memory space. ## Other tools The `util` class offers a few utilities such as `id2ip` and `ip2id` that convert the OTA IP to a radio ID. In case you are not familiar, the DMR radio ID gets mapped to an IP address for data transmission over the air. These functions let you easily convert between OTA IPs and RIDs.


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl TrboDataSvc-0.0.8:

    pip install TrboDataSvc-0.0.8.whl


نصب پکیج tar.gz TrboDataSvc-0.0.8:

    pip install TrboDataSvc-0.0.8.tar.gz