![IQRF RC4-01 Скачать руководство пользователя страница 8](http://html1.mh-extra.com/html/iqrf/rc4-01/rc4-01_user-manual_2089840008.webp)
RC4-01
© MICRORISC s.r.o.
www.iqrf.org
User_guide_RC4-01_180629
Page 8
Caution:
The Demo software version should correspond to IQRF OS version implemented in RC4-01.
To read out the OS version, catch
Module Info
which is always sent by this Demo application just before switching to RFPGM
mode in IQRF IDE Terminal. The
Data HEX
checkbox should be activated for this. OS version is stored in buffer
moduleINFO[4]
. See the picture below and
IQRF OS Reference guide
.
Example:
moduleINFO[0–7]:
[0] [1] [2] [3] [4] [5] [6] [7]
D5 CF 10 81 42 B4 B8 08
moduleINFO[4]
=
42
means OS v4.02D
Caution:
The standard way how to upload the user application into the RC4-01 is RFPGM (in-circuit wireless programming). The
Demo application
RC4-01_demo.c
invokes the
enableRFPGM()
function first. It ensures that after every reset (due to
reconnecting the battery) the device is switched to RFPGM mode and can possibly be reprogrammed. This feature can
be removed (by
disableRFPGM()
), but it should not be done unless there is another reliable way how to invoke back the
RFPGM mode using
runRFPGM()
after pressing a pushbutton. See the Demo application and refer to the
IQRF OS User's
guide
,
Appendix RFPGM
for details. If being omitted, the device can not be reprogrammed wirelessly anymore until it is
recovered by wired upload using the PCB pads inside the case only.
Tip:
If wired upload via the PCB pads is not comfortable for you, always use
enableRFPGM()
during the development.