Microchip RN4020 Bluetooth LE

Thread Starter

joeyd999

Joined Jun 6, 2011
5,285
Further, even if the source values are known before hand, you still need to signal the DUTs somehow to compute and 'lock-in' the calibration coefficients for each calibration point. Bluetooth broadcasting is an excellent way to do this if you happen to have a radio installed anyway -- after which it just becomes code, which is free!
 

Thread Starter

joeyd999

Joined Jun 6, 2011
5,285
I would infer that the source is not something electrical and is not capable of telling its values to the chips being calibrated. At the same time it is incredibly big, so that its characteristics are the same for the chips 100 meters away from each other.
1/2 of your inferences are correct! :D

Congratulations with the successful project!
Thanks. It is pretty impressive, IIDSSMS.
 

Thread Starter

joeyd999

Joined Jun 6, 2011
5,285
I placed my "Instant Wireless Calibration" into service in production today. What was a 30 to 60 second operation on each instrument is now an instantaneous operation for any number of instruments.

I got a ooooh's and ahhhh's from my production personnel, followed by a standing ovation -- seriously. :)
 

Thread Starter

joeyd999

Joined Jun 6, 2011
5,285
Why have you printed it?
I keep a hardcopy plus numerous backups of all my work. The hardcopy is the ultimate, final resource in case all the others fail.

Something I read in a Tom Clancy novel long ago, Executive Orders, stuck with me: "If you don't write it down, it never happened."
 
Last edited:

cmartinez

Joined Jan 17, 2007
8,257
I keep a hardcopy plus numerous backups of all my work. The hardcopy is the ultimate, final resource in case all the others fail.

Something I read in a Tom Clancy novel long ago, Executive Orders, stuck with me: "If you don't write it down, it never happened."
In that case maybe you should have that hard copy bind with hard covers and all
 

geoffers

Joined Oct 25, 2010
488
Cheers for posting all that, I have been reading up now we have moved in! I know the post is a bit old now, but it looks much more complicated than I hoped... ? All I want to do is fire a few bytes at a android.
Should I stick to the rn42 that I got to work easily or have a stab at the 4020? It is much cheaper !
Cheers Geoff
 

Thread Starter

joeyd999

Joined Jun 6, 2011
5,285
Cheers for posting all that, I have been reading up now we have moved in! I know the post is a bit old now, but it looks much more complicated than I hoped... ? All I want to do is fire a few bytes at a android.
Should I stick to the rn42 that I got to work easily or have a stab at the 4020? It is much cheaper !
Cheers Geoff

It's complicated because it's robust. If you're just one-up playing around, it can be done far more simply.
 

geoffers

Joined Oct 25, 2010
488
It's complicated because it's robust. If you're just one-up playing around, it can be done far more simply.
Thanks, I just want to give the thing a name and send out blocks of 8 bytes and I don't need to do anything else while its happening (thank goodness!) I'm sure I will be referring to this thread while I sort it.
Cheers Geoff
 
I am writing the following for those not too versed in BLE, and also for me to read over and over again until it becomes muscle memory (the operative muscle being my brain, of course).
  1. If a value is written to a characteristic, and neither the notify or indicate property is set or enabled, the value is only written locally, and no transmission occurs to central (i.e. central must manually request the value, if it wants it).
  2. If a value is written to a characteristic, and the notify or indicate bit is set but not enabled, same as #1.
  3. If a value is written to a characteristic, and the notify or indicate bit is both set and enabled, a transmission of the value is sent to central and a notification is also sent to indicate to central that a new value has been received.
  4. If a value is written to a characteristic, and the indicate bit is set and enabled, #3 occurs, followed by a return acknowledgement sent from central.
Specific to the RN4020, for each case:
  1. An AOK is returned to indicate the value has been written locally.
  2. Same as #1.
  3. An AOK is returned to indicate the value has been transmitted followed by another AOK to indicate the notification/indication has been sent.
  4. Same as #3, but the second AOK is not returned until the acknowledgement has been received.
This is very badly, and insufficiently, documented in the RN4020 guide.
 
Thanks very much for this extremely informative thread. I have just been asked to debug a RN4020 based device and was pulling my hair out. The documentation really is dreadful. Reading this has clarified the status enormously. Very well done.
 
Top