Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Asynchronous mode serial problem

Rank

Total Posts: 2

Joined 2009-09-25

PM

Hello again,

I'm working with the ANT11Txx3MxIB module in async mode using the schematics in the page 8 as it follows:

High = 3V
Low = 0V

PIN01 GND = Low
PIN02 /RESET = High
PIN03 Vcc = High
PIN04 Low
PIN05 Low
PIN06 /SUSPEND = High
PIN07 SLEEP = Low
PIN08 Low
PIN09 PORTSEL = Low
PIN10 BR2 = High
PIN11 TXD0 = uP RX
PIN12 RXD0 = up TX
PIN13 BR1 = Low
PIN14 BR3 = Low
PIN15 Low
PIN16 Low
PIN17 RTS = uP Input

The baud rate speed is set up as 19200 bps.

And the problem is that sometimes the module appears to be asleep or down because no response is given back. But it has been working right before going down.

Am I doing any thing wrong?

Thanks in advance!      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Jorge,

Are you sending the reset command after the system comes up?
Are you using a pull up on RTS?
What message are you sending to ANT that it does not respond to? Is RTS low while you are sending this message? Do you see RTS go high and then low again after you send the message?      
Rank

Total Posts: 2

Joined 2009-09-25

PM

Thanks for yor answer,

you were right, I did not put the RTS pull up and I did not take any delay after the ResetSystem message. Now the module is working right whith the RTS pull up and a 500ms delay.

I think it is going to work better but if not, I'll tell you.

Thanks!      
Rank

Total Posts: 3

Joined 2009-09-10

PM

Hello,
I'm working as well with the ANT11Txx3MxIB module in async mode, using a STM32F103RB MCU as host. I am using the same schematics as jorgeant.

I am sending the reset command ANT_ResetSystem() after the system comes up.
I am using a pull up on RTS.
After the reset I am sending the message ANT_RequestMessage(ucChannel, ucMessageID) to ANT, but it does not respond to it?
RTS is low while I am sending this message and I never see RTS go high and then low again after I send the message?

Am I doing any thing wrong?

Thanks in advance!      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

How long are you waiting after the reset to send this message?
You should allow ~1ms after power up to let the system come up before resetting, and then wait ~0.5s for the reset to complete before proceeding with other commands.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Can you explain what does using a pull up on RTS mean?
Is that mean that I should set RTS hight before ANR gets reseted?
But the RTS is input, it shouden't be set low, right?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

It means using a pull-up resistor on that line. Please see the datasheets for sample schematics.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

If i didn't use the pull-up resistor, will the transmition work?
It is not mention in the datasheet      
Avatar
RankRank

Total Posts: 40

Joined 2009-03-20

PM

Tsen wrote:
If i didn't use the pull-up resistor, will the transmition work?
It is not mention in the datasheet


If that pin is low when the Ant module comes out of reset, it will go into SensRcore mode an ignore serial inputs.

If the pin is left floating, this will cause Ant initialization to fail randomly, and you'll go crazy trying to figure out why. Don't ask how I know this...

Regards,
Mark
.(JavaScript must be enabled to view this email address)
markrages@gmail      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

I do curious why you know that. XD

Can i ask that the SEN pin on synchronous mode has to be done the same way?

Is that the same reason why the synchronous mode I tried didn't work?

I did the reset(low SRDY, and than low MSGREADY).
I recieved the 'A5' after I had done the reset.
I tried to transport the remain byte, but just when i pulled up MSGREADY, SEND was been pulled up by Ant right away.
I couldn't send message. There was no any response, of course.

Could you help me to figure out what's going on?
I'm very appreciated.      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

SEN provides the flow control for communication from the host to ANT in synchronous mode, in a manner similar to RTS Are you planning on using synchronous or asynchronous mode? The lines that you use to configure the serial port (eg. PORTSEL, SFLOW) must be configured to the appropiate level depending on the type of communication selected during the reset, otherwise, ANT will come up in an unknown state.