Esempio n. 1
0
File: llrp.py Progetto: nneil/sllurp
    def getROSpec (self):
        if self.rospec:
            return self.rospec

        # create an ROSpec to define the reader's inventorying behavior
        self.rospec = LLRPROSpec(self, 1, duration_sec=self.duration,
                            report_every_n_tags=self.report_every_n_tags,
                            tx_power=self.tx_power, antennas=self.antennas,
                            tag_content_selector=self.tag_content_selector)
        logger.debug('ROSpec: {}'.format(self.rospec))
        return self.rospec
Esempio n. 2
0
    def getROSpec(self, force_new=False):
        if self.rospec and not force_new:
            return self.rospec

        # create an ROSpec to define the reader's inventorying behavior
        self.rospec = \
            LLRPROSpec(self, 1, duration_sec=self.duration,
                       report_every_n_tags=self.report_every_n_tags,
                       report_timeout_ms=self.report_timeout_ms,
                       tx_power=self.tx_power,
                       antennas=self.antennas,
                       tag_content_selector=self.tag_content_selector,
                       session=self.session,
                       mode_index=self.reader_mode['ModeIdentifier'],
                       tari=self.tari,
                       tag_population=self.tag_population)
        logger.debug('ROSpec: %s', self.rospec)
        return self.rospec
Esempio n. 3
0
    def getROSpec(self):
        if self.rospec:
            return self.rospec

        # create an ROSpec to define the reader's inventorying behavior
        self.rospec = LLRPROSpec(
            self,
            1,
            duration_sec=self.duration,
            report_every_n_tags=self.report_every_n_tags,
            tx_power=self.tx_power,
            antennas=self.antennas,
            tag_content_selector=self.tag_content_selector,
            session=self.session,
            tag_population=self.tag_population,
            inventory_round_time=self.inventory_round_time)
        logger.debug('ROSpec: %s', self.rospec)
        return self.rospec