nikwest Geschrieben March 6, 2012 at 14:11 Geschrieben March 6, 2012 at 14:11 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? Zitieren
borg Geschrieben March 6, 2012 at 14:48 Geschrieben March 6, 2012 at 14:48 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. Zitieren
nikwest Geschrieben March 10, 2012 at 11:18 Autor Geschrieben March 10, 2012 at 11:18 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. Zitieren
borg Geschrieben March 10, 2012 at 12:34 Geschrieben March 10, 2012 at 12:34 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. Zitieren
borg Geschrieben March 10, 2012 at 12:52 Geschrieben March 10, 2012 at 12:52 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)? Zitieren
borg Geschrieben March 10, 2012 at 14:47 Geschrieben March 10, 2012 at 14:47 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. Zitieren
nikwest Geschrieben March 10, 2012 at 18:33 Autor Geschrieben March 10, 2012 at 18:33 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 ;-) Zitieren
borg Geschrieben March 10, 2012 at 19:33 Geschrieben March 10, 2012 at 19:33 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 . Zitieren
nikwest Geschrieben March 10, 2012 at 19:54 Autor Geschrieben March 10, 2012 at 19:54 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. Zitieren
batti Geschrieben March 10, 2012 at 21:05 Geschrieben March 10, 2012 at 21:05 Sorry for the delay. I have uploaded a new version of brickv. Now you should be able to flash bricklets on windows, too. Zitieren
Anton Geschrieben March 11, 2012 at 18:48 Geschrieben March 11, 2012 at 18:48 Wow! Can not wait for the Mac Os version! Zitieren
borg Geschrieben March 28, 2012 at 23:52 Geschrieben March 28, 2012 at 23:52 Brick Viewer and Brick Daemon for Mac OS X are now online: http://en.blog.tinkerforge.com/ Zitieren
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.