ble112 icon indicating copy to clipboard operation
ble112 copied to clipboard

Supporting hardware

Open josgall opened this issue 12 years ago • 6 comments

Could you please describe your hardware a bit further? Did you solder the reset switch and the .1uf 10uf & .001uf on the board yourself or did you order it with those parts on it? Is the battery connected to the VDD and Ground or the VDD and P2_2. I have a BLE112 on a Jeff Rowberg breakout with no parts on it and I can program it fine. It works as a beacon when it's hooked to the cc debugger getting power through USB. But when I try to remove the ccdebugger I can't figure out how to connect it to the 3.3 cell. I'm thinking of ordering the breakout you are using tomorrow and soldering the 112 on this pcb instead after reading your article. This breakout seems less complicated. Please let me know if you have time to look at it with me. In a hobbyist who just happens to have the same last name as you and I'm messing with the bluegiga and ccdebugger as well! What are the chances lol!

josgall avatar Feb 28 '14 07:02 josgall

I wish I could tell you a bit more about my hardware, but I'm not much of a hardware guy. I ordered the board from hardwarebreakout.com presoldered (Assembled board w/ Stock Firmware - this option: http://cl.ly/image/183y0r3k073l) . I wanted to get Jeff's board, but, sadly, it was out of stock.

My board: When I connect the battery a CR2032, I just connect it to VDD and GND on this image: http://cl.ly/image/3R0W1Y2Y3n3g and compare the red pads with the layout from the BLE112 datasheet, http://cl.ly/image/2u3o2V1Q0F23), you might be able to determine how that matches up with your board.

Your board: Using my untrained eye on the BLE112 BB v2.1 PCB, it looks like you should connect the battery to the top two pins on the right side, labeled GND and 3V3, which are visible in the image on the product page.

Let me know if that helps you, because I'd like to add more helpful information to the page.

Quite the coincidence indeed! Happy hacking!

slackhappy avatar Mar 01 '14 14:03 slackhappy

Ok thanks for the reply! So I went and purchased the board fully assembled, then I soldered the header pins on and hooked it up to the CC Debugger. The green light comes on and everything looks good to go. I went and downloaded your files to flash to the board. Your instructions say to flash out.hex but there is no file called out.hex in your zip folder. How can I compile your bgs into an out.hex? I tried using the Sw Update tool by Bluegiga and I didn't find a way to compile the bgs. any help would be much appreciated!

Thanks, Joseph

josgall avatar Mar 07 '14 19:03 josgall

Take a look at the "required parts" in https://github.com/slackhappy/ble112/blob/master/programming.md You need to install the SDK.

If you are looking at the beacon project, you need to follow all of the Flashing Instructions, including the bgbuild step (which is step 2 in the beacon project) that compiles the project.

slackhappy avatar Mar 07 '14 20:03 slackhappy

You're going to get tired of me but I do have the sdk installed as you show at this link

https://github.com/slackhappy/ble112/blob/master/programming.md

but step 2 tells me to compile a .bjproj, there is no bjproj in your package - you only have bgs files, gatt and xml - how to I get a bjproj to compile to hex using your instructions in step 2?

josgall avatar Mar 07 '14 21:03 josgall

assuming you are trying to compile the beacon, https://github.com/slackhappy/ble112/tree/master/beacon,

step 2 tells you: "From the beacon directory, C:\Bluegiga\ble-1.2.2-100\bin\bgbuild.exe project.xml" What is the output you get for this?

In https://github.com/slackhappy/ble112/blob/master/programming.md, I was using one of the SDK-included examples just to show what the compiling and flashing process looks like, as in, what steps are involved.

The names of the files may vary from SDK version to SDK version, and I'm not at my development computer right now, so I can't tell you if the names of their included examples in the current version of the SDK. Maybe they switched their file extensions from bgproj to xml, but the contents will be the same.

slackhappy avatar Mar 07 '14 21:03 slackhappy

making progress. thanks, that was what I needed. So I was able to compile the project.xml into the out.hex. I was then able to successfully flash the hex file onto the device using your beacon out.hex and the ccdebugger, plus the Bluegiga SW Update tool. I downloaded the BTLExplorer and I was able to see the device there.

The next complication is the connection of the CR2032 battery. I have a CR2032 in a battery holder and I am attempting to connect it like how you have your batter connected in your photo. I have, unfortunately, not being extremely electro-savvy, soldered the black wire onto the positive terminal and the white onto the negative. Regardless, when I connect the wire, I do not see it anymore in BTLExplorer......oops nevermind I just figured it out - see below the pics

photo 1

UPDATE: I have just measured the output of the battery with my volt meter and it reads 2.86v - I took a another battery that measured above 3.0v and it shows up right away in BTLExplorer! This is great! Thanks for your help with this!

josgall avatar Mar 07 '14 22:03 josgall