nikwest Posted March 6, 2012 at 02:11 PM Share Posted March 6, 2012 at 02:11 PM I am running into problems after upgrading both my bricks and bricklets to the new firmware version. If I connect a brick without any bricklets to my computer by USB it shows up in brick viewer (reporting fw 1.1.1). If I connect a bricklet and then connect the brick to the computer the computer does NOT detect the brick on the USB bus. This all happened after the upgrade and used to work without any issues before. Any ideas? Quote Link to comment Share on other sites More sharing options...
borg Posted March 6, 2012 at 02:48 PM Share Posted March 6, 2012 at 02:48 PM This probably means that the Bricklet firmware update somehow didn't work correctly and the Brick crashes when it tries to run the Bricklet plugin. You should try the follow: Connect the Brick to USBWait until it is startedConnect the BrickletStart Brick Viewer and go to "Advanced Functions"Flash the Bricklet again Or with other words: You can connect a Bricklet after the Brick started if you want to update it. This is indeed needed if the Bricklets are fresh from production and the EEPROM is empty. If it still doesn't work, can you tell me what Bricklet and what Brick you are using? Perhaps i added some kind of bug and i can reproduce it here. Quote Link to comment Share on other sites More sharing options...
nikwest Posted March 10, 2012 at 11:18 AM Author Share Posted March 10, 2012 at 11:18 AM Yes, that is my assumption, too. But I tried it several times to update the bricklets. It reported the check is ok after upgrade. I have tried many combinations of bricks (master, dc, servo, all hw 1.0 and FW 1.1.1) and bricklets (piezo, distance, joystick hw 1.0) with no success. However I received a new order this week with a master brick (hw 1.1 and FW 1.1.1). I then got the piezo bricklet working by upgrading the bricklet FW. It now also works on the older master brick. I'm still stuck with the other bricklets so. Tried the same procedure with the distance bricklet, but this did not work. Quote Link to comment Share on other sites More sharing options...
borg Posted March 10, 2012 at 12:34 PM Share Posted March 10, 2012 at 12:34 PM Uh, that is confusing. First of all: The hardware version should be totally irrelevant, we only changed minor things in the placement, removed unused pads and added fiducials for the circuit board assembly process. The only thing where we changed something that is now incompatible is the Voltage Bricklet, but we called the successor Analog In Bricklet, so there can't be any confusion there. So it seems you have a different firmware on the Brick we send you then on your old Bricks, that you updated yourself. Does that mean the firmwares on http://download.tinkerforge.com/firmwares/ are broken and the ones i have locally here not? I will try that out. If you like you can try to flash the new Brick with the same firmware that you flashed on the old Bricks and see if that doesn't work either. I will come back when i tried the different firmware version with different hardware versions. Quote Link to comment Share on other sites More sharing options...
borg Posted March 10, 2012 at 12:52 PM Share Posted March 10, 2012 at 12:52 PM OK, first i compared md5sums of firmwares that are online with md5sums of firmwares from my pc that i used to flash the new Bricks and Bricklets: They are all the same. Then i flashed firmware 1.1.0 to a Distance IR 1.0 and firmware 1.1.1 to an Master Brick 1.0 and everything works as expected. You wrote that the piezzo buzzer now does work, did you do something different when you updated that (compared to the other Bricklets)? Quote Link to comment Share on other sites More sharing options...
borg Posted March 10, 2012 at 02:47 PM Share Posted March 10, 2012 at 02:47 PM Holy Moly! We just tested your scenario on Windows (i tested on Linux before) and had similar problems. The problem is with the Brick Viewer version for Windows. On windows a read() in python ends as soon as it finds an EOF character, therefore you are only writing a part of the firmware. That should be fixable by just reading in binary mode, we will test that extensively now to be sure that everything works on Windows after the change. That bug was in the Brick Viewer since the very first version. Incredible that it didn't get noticed until now. Quote Link to comment Share on other sites More sharing options...
nikwest Posted March 10, 2012 at 06:33 PM Author Share Posted March 10, 2012 at 06:33 PM Thanks for finding the bug. Not an easy one. I can also use linux instead of Windows. I'm running it on VirutalBox on my Mac anyways ;-) Quote Link to comment Share on other sites More sharing options...
borg Posted March 10, 2012 at 07:33 PM Share Posted March 10, 2012 at 07:33 PM You can flash the Bricklets on Linux and use them on windows, if you need them urgently . We have a macbook with dozens of Windows VMs that we use for testing and compiling of the binary, but i don't have that here currently and my colleague is busy. So i can't compile a new binary and test it at the moment. PS: We have a working version of the Brick Viewer for OS X and a nearly working version of the Brick Daemon for OS X (the USB hotplug doesn't work yet). So, we will probably make a first version of that available soon . Quote Link to comment Share on other sites More sharing options...
nikwest Posted March 10, 2012 at 07:54 PM Author Share Posted March 10, 2012 at 07:54 PM That's great news. I've been waiting for the Mac version. I can confirm that I can flash the bricklets without any issues on linux. Quote Link to comment Share on other sites More sharing options...
batti Posted March 10, 2012 at 09:05 PM Share Posted March 10, 2012 at 09:05 PM Sorry for the delay. I have uploaded a new version of brickv. Now you should be able to flash bricklets on windows, too. Quote Link to comment Share on other sites More sharing options...
Anton Posted March 11, 2012 at 06:48 PM Share Posted March 11, 2012 at 06:48 PM Wow! Can not wait for the Mac Os version! Quote Link to comment Share on other sites More sharing options...
borg Posted March 28, 2012 at 11:52 PM Share Posted March 28, 2012 at 11:52 PM Brick Viewer and Brick Daemon for Mac OS X are now online: http://en.blog.tinkerforge.com/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.