• AVR Freaks

Hot!RN4871 Read Notifications

Author
Wojciech Lejkowski
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2020/06/25 00:14:41
  • Location: 0
  • Status: offline
2020/06/28 05:33:11 (permalink)
0

RN4871 Read Notifications

Hello all,
I have a problem with the RN4871 chip. I am using a terminal and connect to a portable thermometer that broadcasts characteristics 0x1809. I enable notifications and receives %RE_DISCV% on the terminal. All I want to achieve is read the temperature value.
By using the NrfConnect application on the phone, notifications are read - screen in attachment. I paste communication commands with the module, please suggest how to read the content of the notification.
 
Log with RN4871:
$$$
CMD> ECHO ON
CMD> F
Scanning
%40163B479FBF,0,BD,Brcst:1BFF7500420401806040163B479FBF42163B479FBE01060800000000%
%C026DE006E44,1,TAIDOC TD1035,,C4%
%4186D198DBC9,1,,,C7%
%D103B5AB66B8,1,BE,Brcst:1EFF4C00121900A963D4D500E90315F876F78A81E3E00B314C6885F4D80100%
X
AOK
CMD> C,1,C026DE006E44
Trying
%CONNECT,1,C026DE006E44%%CONN_PARAM,0050,0000,0190%
CI
AOK
CMD> AOK
CMD> LC
1809
2A1C,000E,00
2A1C,000F,20
180F
2A19,0012,02
2A19,0013,10
180A
2A24,0016,02
2A26,0018,02
000015231212EFDE1523785FEABCD123
000015241212EFDE1523785FEABCD123,001B,08
000015241212EFDE1523785FEABCD123,001C,30
END
CMD> CHR,0013
AOK
CMD> 0000
CMD> CHR,0012
AOK
CMD> 64
CMD> CHR,000F
AOK
CMD> 0000
CMD> CHR,000E
AOK
CMD> %ERR_READ%
CMD> CHW,000F,0200  //Enable Notification
AOK
CMD> AOK
CMD> %RE_DISCV%
%RE_DISCV%
 
CHR,000F
AOK
CMD> 0200
CMD> K,1
AOK
CMD> %DISCONNECT%
 
 

Attached Image(s)

#1

3 Replies Related Threads

    Wojciech Lejkowski
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2020/06/25 00:14:41
    • Location: 0
    • Status: offline
    Re: RN4871 Read Notifications 2020/07/08 10:08:42 (permalink)
    0
    Can anyone help me with this problem? Thanks for all the help.
    #2
    jdeguire
    Super Member
    • Total Posts : 583
    • Reward points : 0
    • Joined: 2012/01/13 07:48:44
    • Location: United States
    • Status: offline
    Re: RN4871 Read Notifications 2020/07/08 10:28:19 (permalink)
    0
    I've never encountered that "RE_DISCV" message from the device before, so I had to look at the data sheet.  The only reference to that states "Received data indication of service changed, redo service discovery".  I don't know what that means, but maybe try issuing the "LC" command again?
     
    You should see data come back via messages starting with "%INDI" or "%NOTI" for data that you can actually use.
    #3
    jdeguire
    Super Member
    • Total Posts : 583
    • Reward points : 0
    • Joined: 2012/01/13 07:48:44
    • Location: United States
    • Status: offline
    Re: RN4871 Read Notifications 2020/07/21 10:35:50 (permalink)
    0
    I happened to have a look at the v1.40 firmware release notes and it has some info about that "%RE_DISCV% message.  For some reason I can't copy it here, so you'll have to check out the release notes PDF on the RN4870 webpage.  Basically, it says to issue the "CI" command if you get it.
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5