• AVR Freaks

Hot!RN-4020 - ITS JUST NOT WORKING-PLEASE HELP.

Author
curnelious
Junior Member
  • Total Posts : 101
  • Reward points : 0
  • Joined: 2013/09/15 05:57:25
  • Location: 0
  • Status: offline
2016/09/19 09:48:49 (permalink)
0

RN-4020 - ITS JUST NOT WORKING-PLEASE HELP.

I'v put days on this, and thanks to the bad support from this company, I just can not figure this out.
I have seen the exact same pattern at other developers, but no solution.
I have connected to rn4020 to terminal , when SW and MLDP  are on high .
 
I do this :
SR,20000000
SS,00000001
PS,11223344556677889900AABBCCDDEEFF
PC,010203040506070809000A0B0C0D0E0F,12,02
PC,111213141516171819101A1B1C1D1E1F,08,02
R,1

 
I list my device I get this : (ls)
180A
  2A25,000B,V
  2A27,000D,V
  2A26,000F,V
  2A28,0011,V
  2A29,0013,V
  2A24,0015,V
11223344556677889900AABBCCDDEEFF
  010203040506070809000A0B0C0D0E0F,0018,02,02
  010203040506070809000A0B0C0D0E0F,0019,10,02
  111213141516171819101A1B1C1D1E1F,001B,08,02

 
(why I set 2 characteristics and I get 3 ???? )
 
 
Then in my iOS (I am 7 years in iOS, so I know every corner of the BLE) I discover and list my services, I can only get this :
 
Device identifier: 90CFF19D-0348-49C1-8179-F258C4714726   (  good !)
advertising service identifier:11223344-5566-7788-9900-AABBCCDDEEFF(why my service uuid is the advertise ?! )
Discovered Services list : 180A  (only this service)
 
NO SIGN TO MY SERVICE, ONLY THE PUBLIC 180A.
 
What am I doing wrong ?   is there anyone here anyway ? is this a fiction forum ? is there a real company called Micro-chip? where is their support ?
 
 
 
Thanks.
#1

7 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 9999
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2016/09/19 21:20:26 (permalink)
    4 (1)
    curnelious
    ...
    What am I doing wrong ?   is there anyone here anyway ? is this a fiction forum ? is there a real company called


    This is a user to user forum, it is not the official support channel.
    That is at http://www.microchip.com/support
     
    #2
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2016/09/20 02:17:32 (permalink)
    0
    "fiction forum" is wonderful grin

    GENOVA :D :D ! GODO
    #3
    roundrocktom
    Super Member
    • Total Posts : 1040
    • Reward points : 0
    • Joined: 2012/09/07 08:19:09
    • Location: Texas
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2016/09/20 04:16:30 (permalink)
    0
    I have some experience with RN4020, but many users on this forum are much more knowledgeable.
    RN4020 is BTLE4.1 device
    RN4870 is BTLE4.2 device.
     
    My first thought was you are looking for GATT services, which is only available as BTLE4.2   I use
    Android so no idea on iOS devices.
     
    Your best best is to try to make the question as clear as possible, and also note what firmware version of the RN4020 you are running.    Then as qhp suggested, send it to www.microchip.com/support.   Post the support ticket number.
    #4
    myZigbee
    Super Member
    • Total Posts : 245
    • Reward points : 0
    • Joined: 2006/11/17 08:34:52
    • Location: 0
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2016/09/21 09:23:08 (permalink)
    3 (1)
    Reboot your iOS device. It caches the service info that it received last time.
    #5
    Guilherme Marques
    Starting Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2014/11/17 05:56:48
    • Location: 0
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2016/09/22 05:28:21 (permalink)
    0
    Hi sir,
     
    Take a look in USER-DEFINED PRIVATE SERVICES, into Application Examples of User guide manual.
    I guess that you need to check some information about your PC in TABLE 1-1:
    CHARACTERISTIC PROPERTIES. To know how big can be your service.

    In that example of  user defined private services (example 3) you will see that some PS need to broke in 2 part depends on size of information.

    If you check your code, You'll notice that

    " 010203040506070809000A0B0C0D0E0F,0018,02,02
     010203040506070809000A0B0C0D0E0F,0019,10,02"
    have the same name, and together represent all of your PC, as well as occur in the example that i asked before.
     
    Probably it is a limitation around the way that you program/define your PC.

    Good luck
     

     
    #6
    peterrog59
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2012/06/27 11:27:33
    • Location: 0
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2020/02/21 12:40:32 (permalink)
    0
    I had this problem of all enabled services not being listed in Microchip's SmartDiscover app. I was using an Android 5 tablet. When I changed to an Android 7 device all enabled services were listed correctly.
    #7
    jdeguire
    Super Member
    • Total Posts : 567
    • Reward points : 0
    • Joined: 2012/01/13 07:48:44
    • Location: United States
    • Status: offline
    Re: RN-4020 - ITS JUST NOT WORKING-PLEASE HELP. 2020/02/21 13:46:07 (permalink)
    0
    Look up the "Client Characteristic Configuration Descriptor", which allows the client to enable notifications (unacknowledged updates) or indications (acknowledged updates) from your characteristic.  The second duplicate entry for your characteristic is the CCCD while the first entry holds it value.  You can tell which is which by looking at the property flags value in each of the listings; this is the second-from-last value.
     
    Your first entry has the flags set as "02".  The upper digit is zero, which means this is the value.  Your second entry has the flags set as "10".  The upper digit is non-zero, which means this is the CCCD.
    #8
    Jump to:
    © 2020 APG vNext Commercial Version 4.5