Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Need to change the baud rate but cant
dZoid
Newbie
Posts: 17
Permalink
Post Need to change the baud rate but cant
on: August 2, 2012, 01:52
Quote

Hi

We're building a polargraph on top of a aduino pro (it was lying around in the lab).

After a lot of trouble uploading the firmware we finaly have it running.

When i go to the arduino serial console, it write some random stuffs, but if i change the baudrate to 28800 i get the proper messages :

POLARGRAPH ON!
Loaded machine width:650
Loaded machine height:650
Loaded mm per rev:65535.00
Loaded motor steps per rev:400
Recalculated pageWidth in steps (43789)
Recalculated pageHeight in steps (43789)
Loaded machine name:ÿÿÿÿÿÿÿÿ
Recalculated mmPerStep (20.48) and stepsPerMM (0.05)
READY
MEMORY,512,END

But we are not able to set the baudrate of the polargraph controler =(

We found that if we save the configuration in a file, there's a baud rate variable, but even if we change it manualy and reload the config, the device is still not found by the controler.

Now we're going to search in the sourcefile and recompile the controler with the proper baudrate, if you have any ideas, it's more than welcome !

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 02:14
Quote

So changed the baudrate in two location in the source code, recompile it but doesn't work better ... 🙁

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 02:20
Quote

didn't mention but we test each time on win 7 and os x 10.8

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 02:23
Quote

on windows we can't find any good baud rate (searching with arduino )

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 02:56
Quote

finaly we get it to be recognized on the mac ... by saving the properties with the right serial port and then reload the apps directly from the source...

we're able to fix the home point wich block the stepper, but nothing else for now ...

we're moving forward 🙂

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 10:47
Quote

Hi there - glad you got it working ish eventually! The baud rate in the firmware is fixed at 57600. You spotted the parameter in the controller to change the baud rate - that was because I was using a pair of XRF radio modules and I couldn't get one of them to change it's external baud rate. So I had to communicate with the computer-side module at 9600, even though the wireless part and the other end still ran at 57600.

The speed itself doesn't make much difference, there's not so much data being transferred that I ever noticed any (slower or faster).

After you've made contact, the first thing you should do is put your machine size into the controller, save it and upload it to the machine (setup->upload machine spec).

good luck!
sandy noble

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: August 2, 2012, 17:05
Quote

Isn't there any speed negotiation between arduino and the computer ?
That's strange that i can only make it work after changing the reading to 28800.

I've uploaded the hex firmware on the board ... at a speed of 57600 ( with a commandline avrdude on the mac ) ... 🙂

dZoid
Newbie
Posts: 17
Permalink
Post Re: Need to change the baud rate but cant
on: September 4, 2012, 15:53
Quote

Ok it was an arduino problem, changed the arduino and it works now ...

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Need to change the baud rate but cant
on: September 5, 2012, 23:15
Quote

Skill - good stuff. There was an issue with the last version that the baud rate you specify in the properties file would only work for the first connection - if you changed the serial port then it would automatically jump back to 57600. That's fixed too now.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.021 seconds.