Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Bike Lights → Thread

   

Bike_Lights Profile Setting

Rank

Total Posts: 14

Joined 2020-07-21

PM

HI
My compang design Bike_Lights(Slave)
Master use EDGE130 Garmin Bicycle stopwatch

i REF
D00001621_ANT+_Device_Profile_-_Bike_Lights_Rev_2.0_M.001

have some question

1.how to get current network key
ANT+_Device_Profile say have network key
THE ANT+ KEY
0xB9 0xA5 0x21 0xFB 0xBD 0x72 0xC3 0x45

THE GARMIN KEY
0xE8 0xE4 0x33 0xA9 0xDD 0x56 0xC1 0x43

Public Network Key
0xE8 0xE4 0x21 0x3B 0x55 0x7A 0x67 0xC1

2.
1.RESET
2.SET NETWORK KEY
3.Assign Channel
4.Set Channel ID
5.SET FREQ
6.OPEN Channel

1-6 is ok
and how to set Bike_Lights Profile

PDF P59
txbuf_B[0]=SYNC;
txbuf_B[1]=9;
txbuf_B[2]=0x4E;
txbuf_B[3]=0x00;

txbuf_B[4]=0x01;
txbuf_B[5]=0x00;
txbuf_B[6]=0x48;
txbuf_B[7]=0x00;
txbuf_B[8]=0x00;
txbuf_B[9]=0xFF;
txbuf_B[10]=0x00;
txbuf_B[11]=0x00;
txbuf_B[12]=txbuf_B[0]^txbuf_B[1]^txbuf_B[2]^txbuf_B[3]^txbuf_B[4]^txbuf_B[5]^txbuf_B[6]^txbuf_B[7]^txbuf_B[8]^txbuf_B[9]^txbuf_B[10]^txbuf_B[11];

RETURN
CHANNEL_IN_WRONG_STATE 21 (0x15)      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

For bike lights the Edge is the slave, and the light is the master.

The bike lights profile uses the ANT+ key like other ANT+ profiles.

Your message looks correctly formatted. Have you checked the responses for the prior messages? The issue may be with the other commands proximity to the reset command. From the ANT Message Protocol and Usage document: "After a Reset System command has been issued, the application should wait 500ms to ensure that ANT is in the proper, “after-reset” state before any further commands are issued from the host. For AT3 and newer modules, the RTS line can be monitored instead: only send commands after an RTS toggle has been observed. Please see the Interfacing with ANT General Purpose Chipsets and Modules Document for more information."      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM

haighi - 25 January 2021 12:56 PM
For bike lights the Edge is the slave, and the light is the master.

The bike lights profile uses the ANT+ key like other ANT+ profiles.

Your message looks correctly formatted. Have you checked the responses for the prior messages? The issue may be with the other commands proximity to the reset command. From the ANT Message Protocol and Usage document: "After a Reset System command has been issued, the application should wait 500ms to ensure that ANT is in the proper, “after-reset” state before any further commands are issued from the host. For AT3 and newer modules, the RTS line can be monitored instead: only send commands after an RTS toggle has been observed. Please see the Interfacing with ANT General Purpose Chipsets and Modules Document for more information."


HI
you means
Edge Stop Watch Control Ant Bike Light on/off
Edge Stop Watch =>Slave
Ant Bike Light =>Master


     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

EISO - 25 January 2021 06:10 PM


HI
you means
Edge Stop Watch Control Ant Bike Light on/off
Edge Stop Watch =>Slave
Ant Bike Light =>Master




Yes.      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM

HI Haigh
what is Profile Process ?

1.RESET
2.SET NETWORK KEY
3.Assign Channel
4.Set Channel ID
5.SET FREQ
6.OPEN Channel
7.Data Page 1
8.Data Page 2
9.Data Page 18

EDGE130 cand discover ANT bike light
but Can't connect ANT bike light ?

1.RESET
txbuf[0]=0xA4;
txbuf[1]=0x01;
txbuf[2]=0x4A;
txbuf[3]=0x00;
txbuf[4]=XOR;
send array ;
2.SET NETWORK KEY
txbuf_1[0]=0xA4;
txbuf_1[1]=0x09;
txbuf_1[2]=0x46;
txbuf_1[3]=0x00;//NETWOR NUMBER
txbuf_1[4]=0xB9;
txbuf_1[5]=0xA5;
txbuf_1[6]=0x21;
txbuf_1[7]=0xFB;
txbuf_1[8]=0xBD;
txbuf_1[9]=0x72;
txbuf_1[10]=0xC3;
txbuf_1[11]=0x45;
txbuf_1[12]=XOR;
send array ;
3.Assign Channel
// Assign Channel
txbuf_2[0]=0xA4;
txbuf_2[1]=0x03;
txbuf_2[2]=0x42;
txbuf_2[3]=0x00;//Channel Number
txbuf_2[4]=0x10;//Channel Type
txbuf_2[5]=0x00;//Network Number
txbuf_2[6]=XOR;
send array ;
4.Set Channel ID
txbuf_3[0]=0xA4;
txbuf_3[1]=0x5;
txbuf_3[2]=0x51;//ID
txbuf_3[3]=0x00;//Channel Number
txbuf_3[4]=0x1;//DEVICE number
txbuf_3[5]=0x00;//DEVICE TYPE
txbuf_3[6]=0x23;//DEVICE TYPE
txbuf_3[7]=0x01;//Transmission Type
txbuf_3[8]=XOR;
send array ;

5.SET FREQ
txbuf_5[0]=0xA4;
txbuf_5[1]=0x02;
txbuf_5[2]=0x45;
txbuf_5[3]=0x00;//Channel Number
txbuf_5[4]=57;//Channel RF Frequency
txbuf_5[5]=XOR;
send array ;
6.OPEN Channel
txbuf_4[0]=0xA4;
txbuf_4[1]=0x01;
txbuf_4[2]=0x4B;
txbuf_4[3]=0x00;
txbuf_4[4]=XOR;
send array ;

     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Your light needs to correctly respond to pages 32, 33, and 34. See profile document sections 5.2 and 5.4 as well as 7.16, 7.17, and 7.18 in particular.

You may wish to experiment with SimulANT+ controlling your prototype as this will allow you to test without automatic behaviors the Edge has which may cause confusion in logs.      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM

haighi - 01 February 2021 04:17 PM
Your light needs to correctly respond to pages 32, 33, and 34. See profile document sections 5.2 and 5.4 as well as 7.16, 7.17, and 7.18 in particular.

You may wish to experiment with SimulANT+ controlling your prototype as this will allow you to test without automatic behaviors the Edge has which may cause confusion in logs.


HI haighi
1.
After Open Channel

IN UNCONNECT STATE
Send
broadcast Data Page 1
broadcast Data Page 2
Data Page 18 – Main Light’s Channel ID (0x12)
2.
HOW TO GET SimulANT+ FOR BikeLight Profile?
     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

If all your light is doing is broadcasting those 3 pages your light will not connect because it will not form a network. All lights are required to support networks. See figure 2 and section 8.1 of the profile document.

Bike lights is a member early release, so you need to download "SimulANT+ Member Early Release" from the software downloads page https://www.thisisant.com/developer/resources/downloads/#software_tab      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM

HI
EDGE130 Bike watch
My company product BIKE LIGHT

I GET SimulANT+ Member Early Release
HOW Set Bike Light Can Test it?

ref Ant Msg(0)
i can know My company product need TRANSMIT TO EDGE130


     

Image Attachments

02081_(1).png

Click thumbnail to see full-size image

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

To test your bike light with a controller (display) you need to select "Bike Light Remote Control" when choosing the simulated profile.

https://www.thisisant.com/forum/viewthread/7138/ gives details for how you can use the SimulANT+ "Bike Light Remote Control" to form a network. This is what needs to work for an Edge to properly pair with your light, and for your light to pass certification.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

If you have more than 1 USB stick, then you can create simulated lights ("Bike Light") on a different USB stick than the controller. These may be easier to test with than multiple real lights in the network.      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM



Thank you for your reply, our company is developing car lights with "Host MCU" + "nRF24AP2".
And we first use "Simulate ANT+" "USB ANT Dongle" for simulating our product.
The simulation can be connected to Garmin car meter smoothly.

However, when the Garmin watch adds new lights to the list, there will be crash logs in "Simulate ANT+", and then the connection will be lost.
After that, We could not perform any actions on the Garmin watch.
Please refer to Figure A below.


Is there any suggestion you could be provided for us?
Thanks in advance.

     

Image Attachments

AAA.png

Click thumbnail to see full-size image

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Thank you for your reply, our company is developing car lights with "Host MCU" + "nRF24AP2".
And we first use "Simulate ANT+" "USB ANT Dongle" for simulating our product.
The simulation can be connected to Garmin car meter smoothly.

Do you mean bike lights with Edge bike computer?

However, when the Garmin watch adds new lights to the list, there will be crash logs in "Simulate ANT+", and then the connection will be lost.

Which watch and software version?
You have only a single controller (the Garmin watch) interacting with the lights? ie no SimulANT+ controller, Garmin Edge, second watch, etc
Are all of the lights created with SimulANT+, or do you also have real lights in the network?

Please refer to Figure A below.

Can you translate the text to English please.      

Signature

Ian Haigh

Rank

Total Posts: 14

Joined 2020-07-21

PM

haighi - 17 February 2021 11:47 AM
Thank you for your reply, our company is developing car lights with "Host MCU" + "nRF24AP2".
And we first use "Simulate ANT+" "USB ANT Dongle" for simulating our product.
The simulation can be connected to Garmin car meter smoothly.

Do you mean bike lights with Edge bike computer?

Please refer to Figure 1 below


However, when the Garmin watch adds new lights to the list, there will be crash logs in "Simulate ANT+", and then the connection will be lost.

Which watch and software version?
You have only a single controller (the Garmin watch) interacting with the lights? ie no SimulANT+ controller, Garmin Edge, second watch, etc
Are all of the lights created with SimulANT+, or do you also have real lights in the network?

Please refer to Figure 2 below

Please refer to Figure A below.

Can you translate the text to English please.


ERROR:Object reference not set to an instance of an object
AntPlus.Profiles.BikeLights.BikeLightDevice.HandleReceiveShared(Byte[] rxBuffer)
     

Image Attachments

2.png

Click thumbnail to see full-size image

Rank

Total Posts: 14

Joined 2020-07-21

PM

EISO - 17 February 2021 07:46 PM
haighi - 17 February 2021 11:47 AM
Thank you for your reply, our company is developing car lights with "Host MCU" + "nRF24AP2".
And we first use "Simulate ANT+" "USB ANT Dongle" for simulating our product.
The simulation can be connected to Garmin car meter smoothly.

Do you mean bike lights with Edge bike computer?

Please refer to Figure 1 below


However, when the Garmin watch adds new lights to the list, there will be crash logs in "Simulate ANT+", and then the connection will be lost.

Which watch and software version?
You have only a single controller (the Garmin watch) interacting with the lights? ie no SimulANT+ controller, Garmin Edge, second watch, etc
Are all of the lights created with SimulANT+, or do you also have real lights in the network?

Please refer to Figure 2 below

Please refer to Figure A below.

Can you translate the text to English please.


ERROR:Object reference not set to an instance of an object
AntPlus.Profiles.BikeLights.BikeLightDevice.HandleReceiveShared(Byte[] rxBuffer)
     

Image Attachments

1.jpg

Click thumbnail to see full-size image