Giter VIP home page Giter VIP logo

Comments (5)

glennergeerts avatar glennergeerts commented on July 19, 2024

How can I reproduce this?
Your theory might be correct indeed, but I need to look into it. I merged the PR already since it needed to be done anyway.

from sub-iot-stack.

meishaoming avatar meishaoming commented on July 19, 2024

here is my test method:

two B-L072Z-LRWAN1 boards, one is gateway, the other is sensor_pull. use the default master code.

gateway keep sending a unicast read request to sensor_pull node every 10 second. below is my python code change from gateway.py :

# ... some other code

    def query_node(self):
        unicast_uid = "0x46323039002C0030"
        addressee_id = int(unicast_uid, 16)
        print(addressee_id)
        configuration = Configuration(qos=QoS(resp_mod=ResponseMode.RESP_MODE_ANY),
                addressee=Addressee(access_class=0x11, id_type=IdType.UID, id=addressee_id))

        alp_command = Command.create_with_read_file_action(
                file_id = 0x40,
                length = 2,
                interface_type = InterfaceType.D7ASP,
                interface_configuration = configuration)
        print(alp_command)

        self.modem.execute_command_async(alp_command)

    def run(self):
        self.log.info('Started')

        keep_running = True
        while keep_running:
            self.query_node()
            time.sleep(10)

if __name__ == '__main__':
    Gateway().run()

then sensor_pull receive the request and send reponse back to gateway.

after a while (10 minutes or less an hour), i got the assertion fail log from the sensor_pull's JLinkRTTClient terminal.

from sub-iot-stack.

meishaoming avatar meishaoming commented on July 19, 2024

How can I reproduce this?
Your theory might be correct indeed, but I need to look into it. I merged the PR already since it needed to be done anyway.

There is one place i have found could cause atomic nested problem:

  1. configure_next_event() was called in a atomic context
  2. in configure_next_event(), called sched_post_task_prio() which called start_atomic() and end_atomic() in it.
  3. after exit from sched_post_task_prio(), the irq is enabled, but still run in configure_next_event() function.

After this pull request the problem will be solved.

from sub-iot-stack.

glennergeerts avatar glennergeerts commented on July 19, 2024

I revert the irq nesting counter commit in the PR on master, this seems to be causing problems with UART RX interrupt. Until the cause of this is found it's better to revert so gateway works again. TBC

from sub-iot-stack.

LOorts-Aloxy avatar LOorts-Aloxy commented on July 19, 2024

There have been major changes concerning the timer, we assume that this is not a problem anymore. If this is incorrect, don't hesitate to open the issue again.

from sub-iot-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.