Connectors,wires and soldering equiptment /Learning
A windows xp computer with Parallel port - (for uploading firmware)
Get the needed software
Arduino software
Firmware Update Software from Bluegiga website (Registration required - it may take a day or so)
Procedure Log:
Test the integrity of ARDUINO BT by uploading one of the sketch program from the examples that came with the Arduino IDE (preferably the ASCII sample program); verify that the ARDUINO BT is able to upload and transmit via Bluetooth (WT11)
Construct a header port and from the WT11 brake-out solder points, connect MISO, MOSI, CS to the header; also connect 3.3v and GND from the Arduino Board (there is excess PCB that can be chipped away from the Arduino BT, use that as a base for the port, no soldering area so super glue will work best)
Use the OIK software to upload the latest firmware (3.0.0) Use a computer that has a parallel port (LPT)
After successful upload, WT11 needs to be reconfigured to its intended ARDUINO BT setup - to to we need to access the RX and TX pin of WT11 directly. This is done by connecting the GND, 3.3V, RX, TX of the FTDI breakout board to the ARDUINO (there are RX and TX jumper solder points beneath the Arduino board you can solder wires from these point and connect them to the FTDI break out board.
Use a free serial port monitor to communicate with WT11 via FTDI break out (for Mac users just user terminal with SCREEN command)
Once connection is establish use the following commands
SET BT NAME ARDUINOBT
SET BT CLASS 001f00
SET BT AUTH * 12345
SET BT PAGEMODE 3 2000 1
SET BT ROLE 0 f 7d00
SET CONTROL BAUD 115200,8n1
SET CONTROL ECHO 0
SET CONTROL ESCAPE - 00 1
SET PROFILE SPP on
Actually I was trying to do something alike. But first i wanted to fittle around with the profile settings and other stuff, so i uploaded a program that receives commands switch mode, executes the command, reads the output, switch mode and responds the output for me to read.
The problem came when i switched profile to SPP with "SET PROFILE SPP" for which it responded "READY." and then i reset the WT11 acording to the user guide with "RESET". Ofcause i lost connection with the WT11, but now i cant open a connection anymore.
I can bind with it, but as soon as i try to read or write (open the connection) to it, I get a "Connection refuse" error.
I have tried setting the pin 7 (WT11 reset) with a wire and i have tried to reset the arduino board, i hope that the restart of the program would initialize the WT11 to a state where it would communicate with me again.
I can still see the device with "hcitool scan" but when I do a "sdptool browse" on it, I don't get any information back.
I have the following in my programs setup function
Serial.println("SET BT PAGEMODE 3 2000 1");
Serial.println("SET BT NAME ArduinoBT");
Serial.println("SET BT ROLE 0 f 7d00");
Serial.println("SET BT AUTH * 12345");
Serial.println("SET CONTROL ESCAPE 43 00 0");
Could it be that when i send the "RESET" command it newer received the "+++" command which should have switched it back to data mode?
How do i make a kind of hard reset of the WT11 to bring it back to factory settings or the settings used as standard in arduino bt?
I have ordered a FTDI Breakout board so i can read/write to the WT11 module through a cabled connection. Hopefully this can be solved quite easily.
But newer the less i might need to update the firmware of the WT11 in the future to support what i need. The Arduino Playground - BTWT11Interface is a quite cheap solution for this but who the heck still has a computer with a parallel port? A usb-to-db25 converter could be a solution if the PSTool & iWRAP Update Client software can handle this? I'm still waiting to be accepted into the Bluegiga techforum, so i cant really see how the official tools is connected.
Could it be that when i send the "RESET" command it newer
received the "+++" command which should have switched it back to
data mode?
IMHO perhaps the "+++" is the problem.
How do i make a kind of hard reset of the WT11 to bring it back
to factory settings or the settings used as standard in arduino bt?
I suggest Plan A and Plan B:
Plan A:
Get UART access to a computer (or in my case by FTDI 3.3v breakout)
Connect/Solder the RX TX GND of the UART to TX RX and GND of WT11 (note the reverse connection of RX & TX)
The solder points/jumpers are located at the bottom of the Arduino PCB (Please refer to the pdf file in the Arduino Website)
Use Terminal program in windows / Screen on Terminal (Mac) to connect to the UART .
You can also use the Serial Monitor of ARDUINO IDE (I did not tried it yet though)
At this point you are now able to 'talk' directly to the WT11 refer to the online manual of Bluegiga on how to communicate with WT11 directly via UART.
IMHO, SET PROFILE SPP on
is not the problem because that is the default of the chip. I had problems with uploading the program when I have enabled SET CONTROL ECHO 43 00 1
so please set it off by SET CONTROL ECHO - 00 1
The following SET command I use to bring it back to SPP mode (via UART)
SET BT NAME ARDUINOBT
SET BT CLASS 001f00
SET BT AUTH * 12345
SET BT PAGEMODE 3 2000 1
SET BT ROLE 0 f 7d00
SET CONTROL BAUD 115200,8n1
SET CONTROL ECHO 0
SET CONTROL ESCAPE - 00 1
SET PROFILE SPP on
Once you 'set' the figures above, then remove the UART connection and proceed with the usually upload and download of your Arduino Sketch (Via BT). You should be able to perform it without problems
Plan B
If that does not work, you have to 'upload' the firmware of the WT11 - please refer to my notes above on how I was able to do it. The upside is that if you do then you will be able to upload the later firmware version that has the HID profile needed to make WT11 in to a BT keyboard
I also used the break out board to communicate with WT11. IMHO as long as you did not change the baud rate (115200). You have a greater possiblity to bring back WT11 default settings.
However, if you would like to continue to program ARDUINO BT as a BT keyboard, then you are on the right path of making the parallel port updater.
I have the same frustration with finding a parallel port, luckily I have an old windows xp laptop with a parallel port.
Also I would like to note that I have successfully transformed ARDUINO BT to a BT keyboard, the only catch is that the latest firmware of WT11 does not work with MAC OS 10.x. It work ok with blue solie on PC windows.
The people at Bluegiga are already on it and hopefully they will come up with a later firmware version that solves this problem
Thanks for the reply. I'm still waiting for the components to make the parallel interface and the breakout board.
About the connection of RX TX on breakout board and WT11, as far as I can see from the schematic layout PDF, then the Arduino RX is connected to the WT11 TX and Arduino TX is connected to the WT11 RX, so i assume that is the reason why you point this out.
But then i could just aswell use the digital pin 0 and 1 which is ,obviously also, connected to the WT11 instead of solder wires to the jumper beneath the board. The only difference is that the 2k2 resistor on arduino TX line which is bypassed when you use the jumper. So in my mind this should make slim to none difference?
It kind of makes no sense to me that the RX and TX lines are switched.
As far as i understand, then WT11 shouldn't refuse connections just because it is in command mode. It actually shouldn't make any difference if i lost the connection wile it was i command mode or when it was in data mode.
But Ill have a crack at it when i get the components.
The only difference is that the 2k2 resistor on arduino TX line
which is bypassed when you use the jumper. So in my mind this should
make slim to none difference?
I know little (or zero) electronics, I assumed that the 2.2k resistor had a purpose with respect to the solder points (perhaps it is there to give the a higher connection priority againts the ATMega chip in case the chip has some serial activity) so I decided to use the jumper solder points.
On the other hand I like your idea in just connecting them in the header sockets; Just upload a new/blank sketch doing nothing (no Serial.print()/read()) so Arduino will not interfere with you during direct commincation with WT11.
It kind of makes no sense to me
that the RX and TX lines are switched.
rx is another word for receive and tx is another word for transmit; for one to transmit it needs to be received and for one to receive the other must transmit.
Yes and reversing the connection will 'instead' give you access directly to ATMega chip. This option is useful if the decision is made to cut the current connection of WT11's rx and tx and to reconnect them to a different IO pin of the Arduino (using the virtual serial library).
This will also enable you to directly upload Arduino Sketch without passing thru WT11, similar to Arduino NG.
At this time I manage to activate both SPP profile and HID profile and make it work with my Mac; uploading sketches via bluetooth and using the FTDI breakboard to communicate with WT11 directly. Both SPP profile and HID profile are working and I am happy with it :D.
I thank the Arduino BT designers in choosing WT11 as the BT module!
The next step is to manipulate the SET commands: turn everything in default during the first second(s) after boot and then setting them to manipulate WT11 for intercepting pairing and connecting to a host.
But I'll have a crack at it when i get the components.
I wish you well in getting the components for the diy OIK uploader. It will be like night to day by the time you upload the latest firmware. Please let me know how it worked on your end
If you get the time, I wold weary much like to see a detailed guide/how-to of what you did after you flashed the WT11.
Actually what I had in mind was to interact with a wiimote, which abuses the HID protocol. So it would be nice to se what exactley you did to get it to emulate a keyboard.
My goal is to make a one hand keyboard that uses combinations of buttons to type a letter. The aim is for disabled persons or even two handed persons who would like to dedicate the other hand for another thing like a mouse or tablet.
I already made a usb version and know I am working on a wireless version.
I have the details on my first post. I will try to elaborate the upload part below
Details
Acquire the OIK or diy OIK - you need this to upload the firmware
On Arduino BT there are jumper solder points for WT11 locate the solder points for NCSB(SV2 5), SCLK(SV2 6) , MISO (SV2 7), MOSI (SV2 8)
Also locate 3.3Volts (SJ3 2) and GND (any GND will do)
Total of 6 pins - solder wires on these solder points and connect them to a header. Picture shows my Arduino BT with additional headers for OIK and the FTDI Break board
Since you are building your own OIK firmware uploader, you have the freedom to choose the kind of header you like.
While waiting for your parts, I suggest you register to the Bluegiga techforum page. This will grant you access to thier firmware uploader (for PC only).
as long as you have a their software, a pc with a LPT1 (printer port) and a working OIK uploader, uploading the firmware would be seamless.
Just to note the OIK uploader gets its power from Arduino BT, so make sure it has power.
I assume the reason why you want to solder a wire to the 3.3v SJ3-2 is to supply the OIK with power? And thus this has nothing to do with the breakout board.
I have tried to connect the breakout board RX TX to arduino TX RX (digital pins 1 and 2) which should allow me to upload and communicate with arduino. This however is not really working for me. I can see when i reset the board that the boatloader writes out some characters but that is it. When i try to upload to it i get the following error
avrdude: stk500_getsync(): not in sync: resp=0x53
avrdude: stk500_recv(): programmer is not responding
I can see from your pictures that I'm not using the exact same breakout board, but instead I'm using this one http://www.electrokit.se/item_show.php?code_no=41003404 which should be almost the same as far as I understand.
It is a bit hard to see from your pictures but it looks like your powering the arduino board through the breakout boards +3.3v and gnd?
It also looks like you are wiring alot of other stuff from the breakout board? It looks like you have 6 wires going from your breakout board to the arduino board.
I managed to get the WT11 chip talking to me, by hooking onto the JP2 underneath the board.. though im still quite querious why I coldn't upload to it, whil attached to the digital pins 0,1 which should be connected directley to the atmega RX and TX.
My problem was, as I expected, that the SPP was disabled. So enabling this made it all work again :)..
I am glad you are able to communicate with WT11 via direct UART connection.
The reason you have problems when uploading sketches is that your UART connection is attached. Removed the UART an proceed with uploading your sketches via Bluetooth.
If you how ever are trying to upload the skecth from your UART then reverse the connection of RX TX (Please read my previous notes above for more understanding)
The next step is for you to upload the firmware. Once you have done this, HID profile is very easy/fun to use.
I've been testing the DIY cable from the playground (Arduino Playground - BTWT11Interface) for two days now.. But I can't really get it to work.
I have managed to find two computers with parallel ports in them. But when i run the aiupdate.exe and push "Read module info" it emidietley tells me that it was unable to open the LPT1 port and when i press "Update" it says that it cant identify the module.
I would have expected it to have a timeout before it could determine whether or not the module is there.
I have checked and duble checket that the wires are correct, both on the arduino and on the cd4050 and to the parallel connector. And i have noted that the vcc and gnd are reversed. I checked the chips datasheet to be sure what was what.
You currently have 3 things working together (PC, Firmware-uploader(OIK) and Arduino BT. Disconnect them from each other and do separate test on each one.
Verify if your Arduino BT is working - see if you can upload the ASCII sample sketch from Arduino BT via Bluetooth and verify if its echoing back.
Verify if your PC LPT is working - If you can find an old printer then try to print from it using Windows command line
Verify if your OIK is working - using the 3.3v supply from your Arduino BT, 'power-on' your firmware uploader and verify if your cd4050's buffers are working; use a multitester (or better yet a logic probe) to measure the output of the 5 gates: (I.E. if you ground(low) Pin 3 you should also have 0v(low) on Pin 2 ; If you apply 3.3v(high) on Pin3 you should also read 3.3v(high) on Pin 2)
Make sure you get all of the 3 working/verified. This will give you confidence that all your materials are 'working'.
2.Verify connections
At this point you are confident that the 3 items are working. So the next step is to verify how you connect the 3 things together.
3. Fire in the hole
By this point I "hope" you "found" something that needs to be fixed/changed/repaired. That means you can proceed with uploading
I have managed to find two computers
with parallel ports in them. But when i run the
aiupdate.exe and push "Read module info"
it emidietley tells me that it was unable
to open the LPT1 port and when
i press "Update" it says that it cant
identify the module.
Jesper,
Re-reading your post, I remembered I came across the same problem. Assuming you have a 'working' setup. This is how I manage to fix that:
In the Bluesuite folder you will find the 'BlueFlash' program
Open that program and select the LPT where you have your uploader
If there is no 'error' that happend then you can proceed in clicking 'Stop Processor'
On successful 'stop' then choose FlashErase
In my case I choose 'erase all' (mind you this is at your own risk)
after complete erase, Choose a firmware to be uploaded by clicking on 'Choose File' and selecting the WT1X firmware
Click download (and hope it does it completely)
After download you can click on 'Start Processor' (that was previously Stop Processor) then you chip is set.
If you manage to upload it, go back to aiupdate.exe; it should be able to identify it and to proceed with upload
Just to note the whole process involves "2" firmware uploads 1-the BlueCore (main) then the other one is the IWRAP (blue giga)
Ok Jesper I hope that info helps you. I wish you success in uploading that Firmware
I would like to know if you managed to update WT11 with just RX, TX, and GND pins ; or have you also included the NCTS and NRTS pins when you updated it via DFU?
Sorry for way to late answer. I missed the mail about your post.
At first i had problems using only RX/TX and after some carefull reading in the manual about the NCTS and NRTS and how it could fail if those warrent used i soldered some more wires onto the board but still with no success.
After much furry :), I found out that the DFU wizzard apparantley have problems downloading the old firmware from the chip, which was what failed. But the first time you start the DFU wizzard it doesn't allow you just to upload a new firmware (2. of the 3 possibilities) but only allows the first of the three possibilities.
After some time i then found out that if you specify the location where it should save the downloaded firmware (backup), to some valid DFU file, it suddenly allows all of the three possibilities and then you can select only to upload new firmware.
At this point it worked without any problems only using the RX/TX lines.
In between my furry i also tried to solder lines to the USB D+/D- and connecting it to the computer using a USB cable. However I didn't get this to work with the DFU wizzard. Maybe if I had used more time on this I could have made it work.