Bluetooth mesh sensor client example gives different outputs in different mobile devices

Hello

I tried bluetooth mesh sensor server and client example, everything is good including provisioning process in mobile but the output is different with different mobiles. i have 2 mobiles where i tested in both mobiles i get output of this part as shown in picture-1

picture-1

and

picture-2

and from the picture-2 of code except chip temperature i can see other printk functions in output.

I tried this in my colleague mobile in that i can see picture-2 outputs but not picture-1 output.

I am really confused, why this happens? Can anyone help me as soon as possible please...

Regards

SaSu

Parents
  • Hi,

    1. Which devices did you use for the sensor server and client samples?
    2. Could you add the output you see on your mobiles as well? 
    3. Are there any differences between the mobiles? Different OS'?

    Kind regards,
    Andreas

  • Hello

    Sorry for late response. 1. For sensor_server thingy:53 with nRF5340DK and for sensor_client nRF52840DK

    2. From my colleague mobile i dont have screenshot also he is not available now its android and output comes from picture-2 i.e "chip temperature is .. ", "presence detected" and so on. I have two mobiles one is android and other is IOS so in both i could not see "chip temperature" output line its directly jumping to picture-1 i.e "Relative runtime in 0 to 30 degrees : 0.0000 percent" and also i can see presence detected lines when i press button on thingy-53.

    3. Already answered in point 2

    Regards

  • Hi,

    No worries about the response time. Thank you for supplying information about your configuration. I will try to see if I can observe the same output that you observe.

    In addition, for us to be able to help you as fast as possible, it would be helpful if you also provide the actual screenshot that displays the output on your phone whenever you can obtain it. There is only so much we can do without seeing the output and/or any logs.

    As for why this happens, I can not say at this point in time. There could be something missing with how the appkeys have been bound and how the servers are configured. Did you do anything different between configuring the setup with the different phones? If so, could you try to recreate the issue with by following identical steps with the two different phones?

    Do you see the same result every time, or only sometimes when testing the samples?

    Have you done any changes to the samples in terms of editing the code? If so, can you say what you've changed so I can try to recreate it?

    Kind regards,
    Andreas

  • Hello

    sorry for late response i don't have screenshot of it but again i checked in my colleague mobile too and now its same like my mobile doesn't get chip temperature output and i saw the problem and something wrong in if function itself from "pic-1" these both values are not same that's why it doesn't go to "printk" function of chip temperature. Earlier i got value with my colleague as i said before that means that time it was same. I don't understand why its not same may b somewhere problem in the provisioning steps? i don't know. please help me in this and for your info from "pic-2" function first if and else if is not working as i said values are different but the "sensor->id == bt_mesh_sensor_time_since_presence_detected.id" looks like have same vales because "printk("%s second(s) since last presence detected" printing in my console.

    pic-1

    pic-2

  • Hi,

    The images displaying the code from the sample and reciting what you observe is not the same as supplying a terminal output or a screenshot of the output from your mobile phone. It is no hurry to get them, but let me know when you get them and I will take a look at them! :) 

    I also will still need answers to the questions in my previous reply in order to follow up. If you don't answer the questions I'm asking, I unfortunately can't help you. Let me know if you don't understand my questions, and I will do my best to explain them in another way!

    1. Did you do anything different between configuring the setup with the different phones? If so, could you try to recreate the issue with by following identical steps with the two different phones?

    2. And also can you try follow the steps in the sample documentation for testing this sample and see if you can determine if the output is as expected? https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/sensor_server/README.html
    3. Do you see the same result every time, or only sometimes when testing the samples?

    4. Have you done any changes to the samples in terms of editing the code? If so, can you say what you've changed so I can try to recreate it?

    Kind regards,
    Andreas 

  • Hello

    Sorry for not being clear. Here are the answers to your questions.

    1.The configuration my colleague did last time, he told me he don't remember how he did and (FYI: That's the only one time i saw the output of "chip temperature" and can't see "relative between ..." output from "sensor_cli_series_entry_cb" function at that time).

    2. Everytime i do same as steps as give in the sample documentation except publish thing in sensor_server because i couldn't do it even though i am setting to existing group its not setting up to the group. Even i created a forum question about this issue cannot set publish in sensor_server( Could not set publication in sensor server(Mesh Sensor) example in mobile App) as my colleague told me publish is not required in sensor_server i closed the forum question.

    3. I see the same output everytime. also attaching the output i get everytime . My problem is i need the "chip temperature" output on the screen which is important to me.

        Here we see "Present Device Operating Temperature" is 24.28. That value should be in "chip temperature" output.

    4. I did not do any changes just added printk functions why its not working before (if) thats it.

    Really waiting to see chip temperature output on my screen.

    Regards

Reply
  • Hello

    Sorry for not being clear. Here are the answers to your questions.

    1.The configuration my colleague did last time, he told me he don't remember how he did and (FYI: That's the only one time i saw the output of "chip temperature" and can't see "relative between ..." output from "sensor_cli_series_entry_cb" function at that time).

    2. Everytime i do same as steps as give in the sample documentation except publish thing in sensor_server because i couldn't do it even though i am setting to existing group its not setting up to the group. Even i created a forum question about this issue cannot set publish in sensor_server( Could not set publication in sensor server(Mesh Sensor) example in mobile App) as my colleague told me publish is not required in sensor_server i closed the forum question.

    3. I see the same output everytime. also attaching the output i get everytime . My problem is i need the "chip temperature" output on the screen which is important to me.

        Here we see "Present Device Operating Temperature" is 24.28. That value should be in "chip temperature" output.

    4. I did not do any changes just added printk functions why its not working before (if) thats it.

    Really waiting to see chip temperature output on my screen.

    Regards

Children
  • Hello,

    Andreas is currently out of office, so I will look into your ticket.

    I am trying to understand what you are doing here. Your nRF chip is reading a chip temperature (using an external temperature sensor?) 

    Is the issue that you don't get the sensor_cli_series_entry_cb() to trigger in your nRF chip's application? What is supposed to trigger it? How is that set up?

    SaSu said:
    Everytime i do same as steps as give in the sample documentation

    What sample documentation? Your colleague's sample documentation, or some documentation from our side?

    SaSu said:
    3. I see the same output everytime. also attaching the output i get everytime . My problem is i need the "chip temperature" output on the screen which is important to me.

    So you don't get the sensor_cli_data_cb() to trigger either? What is supposed to trigger it?

    SaSu said:
    I did not do any changes just added printk functions why its not working before (if) thats it.

    When was it working, and what did you do in the meantime? (because something obviously changed). Have you tried debugging, setting a breakpoint in the callbacks? Is the issue that the callbacks doesn't trigger, or that the printk() doesn't print anything?

    BR,

    Edvin

  • 1. In "sensor_cli_data_cb", I am not getting the first if output i.e "Chip temperature" and i want that.

    2. Sample Document means https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/sensor_server/README.html. (i.e i have done same provisioning process except publish thing in sensor_server because i couldn't do it even though i am setting to existing group its not setting up to the group. Even i created a forum question about this issue cannot set publish in sensor_server( Could not set publication in sensor server(Mesh Sensor) example in mobile App) as my colleague told me publish is not required in sensor_server i closed the forum question.(As explained in previous reply))

    3. It worked only once with my colleague mobile and he dont remember how he did it at that time also i got only "chip temperature" output but not " sesnor_cli_series_entry_cb" output

    4. Recently again i tested with my colleague mobile that time same output as with my mobile devices and the output is I can see " sesnor_cli_series_entry_cb" output but not "chip temperature" output in "sensor_cli_data_cb"

    Regards

  • SaSu said:
    1. In "sensor_cli_data_cb", I am not getting the first if output i.e "Chip temperature" and i want that.

    Is it the sensor_cli_data_cb callback that is not triggering, or the printk() that is not printing?

    SaSu said:
    3. It worked only once with my colleague mobile and he dont remember how he did it at that time also i got only "chip temperature" output but not " sesnor_cli_series_entry_cb" output

    What is supposed to trigger sesnor_cli_series_entry_cb() in your application?

  • 1. printk("chip temperature : ........") from sensor_cli_data_cb is not printing.

    2. In "sensor_cli_series_entry_cb" output is just like picture in 3rd point last before reply only that is triggering everytime for me but i want "chip temperature" output.

    Regards

  • SaSu said:
    1. printk("chip temperature : ........") from sensor_cli_data_cb is not printing.

    But have you debugged to see if the sensor_cli_data_cb() is actually being called?

Related