Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Valid script?

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Hello all,

I have 2 questions. I cannot make AT3 module running.
(1)
In the first try, I had all the pins connected to GND, but Vcc and nRESET. In this mode (PORTSEL = GND = demo), the device takes about 100mA. Can I consider this as failure? What is demo supposed to do?

(2)
In the second try, I switched to Custom mode (PORTSEL = Vcc = Custom). The device takes 10mA - 20mA.
The script written in the module's NVM is:
C [91][00][00][40][FF][01][00] // Configuring Data Channel 0 on ANT Channel 0 as Digital Input using pin(s) FF reporting on 100.00% of messages
C [42][00][10][00] // Assign Channel Master on ANT chanel 0 on network 0
C [51][00][31][00][01][05] // Assign Channel ID 0, Dev. Num = 31, Dev. Type = 1, Trans. Type = 5 (SensRCore: No Shared Address + Global Data Identification Byte Flag)
C [43][00][00][20] // Set ANT Channel 0 Message Period to 4.00 Hz
C [45][00][42] // Set ANT Channel 0 RF Frequency to 2466 MHz
C [4B][00] // Open ANT chanel 0

Then I opened ANTware-II and opened on USB device following channel (note, frequency is set to 2466 MHz, period is 4 Hz):
OPEN_CHANNEL_0x4B, Ch:0
::40, 00-4B-00
CHANNEL_STATUS_0x52
::52, 00-02
CHANNEL_ID_0x51
::51, 00-31-00-01-05

And this is what I get:
Auto-Open Initiated...
> Opening Channel...
EVENT_RX_SEARCH_TIMEOUT_0x01
:: 40, 00-01-01
EVENT_CHANNEL_CLOSED_0x07
:: 40, 00-01-07

So no communication could be established. Is the script valid and is the settings ok to establish common communication channel?      
RankRank

Total Posts: 47

Joined 2010-07-08

PM

1) There is a little card that comes with your ANT development kit that explains how to build two independant "devices" by stacking the I/O board and battery board with AT3 modules. In this mode, the demo sensrcore script runs so that pressing buttons on one I/O board will trigger an LED to light up on the other board (command sent wirelessly using the AT3). So you really need to set up two modules to run the demo properly.

2) Have you tried running one of the proven demo scripts yet? The best way to start working with Sensrcore is to read through the "SensRcore messaging and usage" document found in the devzone. Then I would recommend downloading the "Ant Development Kit user manual" which will guide you through loading a different demo (the ANT_ASC_Demo) onto the AT3 module. This way you can prove that your module is set up and working properly. Then you can move on to trying to create your own custom scripts. I suggest downloading and working through all of the following:

Sensrcore messaging and usage:
http://www.thisisant.com/images/Resources/PDF/ant_an06 - sensrcore_mode_example_use_rev_1.5.pdf
DevKit manual:
http://www.thisisant.com/images/Resources/PDF/ant development kit user manual.pdf
Sample scripts:
http://www.thisisant.com/images/Resources/SensRcore Sample Scripts.zip
PC Tools (contains SensRware and the ASC demo):
http://www.thisisant.com/images/Resources/pc_tools.zip