Modifications

Sauter à la navigation Sauter à la recherche
3 141 octets ajoutés ,  29 juin 2014 à 09:30
Page créée avec « {{EZ-LINK-NAV}} == Intro == {{bloc-etroit|text=Its a good idea to test your Bluefruit EZ-Link, that way you can tell if there's something wrong with your microcontroller or ... »
{{EZ-LINK-NAV}}

== Intro ==
{{bloc-etroit|text=Its a good idea to test your Bluefruit EZ-Link, that way you can tell if there's something wrong with your microcontroller or wiring - you can at least rule out the EZ-Link from being the problem.

To test, you'll need a terminal program. Since most people have the Arduino IDE installed, I'll use that for the first 'loopback' test}}

== Test en boucle fermée ==
{{bloc-etroit|text=Ce test communément appelé "Loop-back test" dans de nombreux domaines permet de s'assurer que l'EZ-Link soit capable de recevoir et renvoyer des données {{underline|sans matériel supplémentaire}}. Les tests loop-back sont très pratique pour tester facilement et efficacement des circuits physique de transmission de données.


The loopback test is the easiest test and checks the RX/TX pins as well as the wireless link overall!
Start up the Arduino IDE and select the Bluetooth device you found in the Pairing step beforehand}}

{{ADFImage|EZ-LINK-Tester-01.png|640px}}

Then open up the Serial monitor. It may take a few seconds to make the link. You should see the red LED on the EZ-Link blink very fast now to indicate a connection is made

{{ADFImage|EZ-LINK-Tester-02.png|640px}}

Type some text into the entry box and hit return, you should see nothing appear in the monitor

{{ADFImage|EZ-LINK-Tester-03.png|640px}}

Now connect a wire from the RX to the TX pin on the EZ-Link

{{ADFImage|EZ-LINK-Tester-04.jpg|640px}}

Now go back to the Serial Monitor and type in a new message & hit return

{{ADFImage|EZ-LINK-Tester-05.png|640px}}

This time, you'll see whatever you send is echoed back to you - that way you have tested that data can be sent wirelessly to the EZ-Link, through the wire, and then back to your computer. If you watch closely you can also see the blue LEDs flicker

{{ADFImage|EZ-LINK-Tester-06.png|640px}}

== Test DTR/DSR ==
This is a more advanced test, for checking the DSR/DTR pins. For this, we need a terminal program that can control the flow lines. Unfortunately the Arduino IDE does not do this, but Digi's X-CTU program can.

[http://www.w7ay.net/site/Applications/Serial%20Tools/ If you're on a Mac, Serial Tools will let you perform the same tests as X-CTU is not available for Mac]

Select the COM port you identified before

{{ADFImage|EZ-LINK-Tester-10.png|640px}}

And click on '''Terminal''' to open up the serial monitor/entry window

{{ADFImage|EZ-LINK-Tester-11.png|640px}}

X-CTU has the nice ability to show you data sent and received at once, which makes it easy to do the RX-TX loopback test as above, you'll see each character echoed

{{ADFImage|EZ-LINK-Tester-12.png|640px}}

To do the DTR/DSR test, connect a wire from DSR to DTR line below

{{ADFImage|EZ-LINK-Tester-13.jpg|640px}}

Then click on the '''DTR''' checkbox, this will toggle the DTR line on the EZ-Link, which will then feed back to the '''DSR''' line which will toggle the green DSR labeled box to the left. Make sure you see the green box turn on and off when you click the checkbox!

{{ADFImage|EZ-LINK-Tester-14a.png}}

{{ADFImage|EZ-LINK-Tester-14b.png}}

{{EZ-LINK-TRAILER}}
29 917

modifications

Menu de navigation