Content-Type: multipart/alternative; boundary="------------010605080806020307040200" --------------010605080806020307040200 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Here comes the output using the config file: driver ( name "hokuyo_aist" provides ["ranger:0"] portopts "type=serial,device=/dev/ttyS1,timeout=1,baud=19200,debug=3" verbose 1 baud_rate 115200 ) The Scanner is switched on and hence is using baud 19200. After the driver gets stuck, the scanner is using 115200Baud so the setup of the scanner was successful. Then it get stuck with a timeout error. When i try again after, using portops with 115200, the scanner is running perfectly Cheers, /Markus gbiggs schrieb: > I'm not sure the problem is needing to flush the port, as there > shouldn't be any data on the port after changing the baud rate. Can you > add the debug=3 option to that config file (leave verbose on as well) > and send the log? > > Geoff > > Markus Eich wrote: > >> Thank you. The driver is now able to connect and reconnect. >> >> But there is still a problem with the OpenWithProbing method. If the >> baud rate in the config is different within the portopts and the baud_rate >> >> my config: >> driver >> ( >> name "hokuyo_aist" >> provides ["ranger:0"] >> portopts "type=serial,device=/dev/ttyS1,timeout=1,baud=115200" >> verbose 1 >> baud_rate 19200 >> ) >> >> >> It seems the probing is working so far (laser was at 115200 baud). Than >> the laser is set to 19200 >> >> //from complete log at the end >> >> HokuyoLaser::SendCommand() Writing in SCIP2 mode. Command is SS, >> parameters length is 6 >> HokuyoLaser::ReadLine() Reading exactly 9 bytes. >> HokuyoLaser::ReadLine() Read 9 bytes. >> HokuyoLaser::ReadLine() Line is SS019200 >> HokuyoLaser::ReadLine() Reading exactly 4 bytes. >> HokuyoLaser::ReadLine() Read 4 bytes. >> HokuyoLaser::ReadLine() Line is 00P >> HokuyoLaser::ReadLineWithCheck() Considering 2 bytes for checksum from a >> line length of 3 bytes. >> HokuyoLaser::ReadLineWithCheck() Calculated checksum = 80 (P), given >> checksum = 80 (P) >> HokuyoLaser::SendCommand() Command response status: 00 >> HokuyoLaser::SkipLines() Skipping 1 lines. >> HokuyoLaser::SetMotorSpeed() Reseting motor speed to default. >> HokuyoLaser::SendCommand() Writing in SCIP2 mode. Command is CR, >> parameters length is 2 >> HokuyoLaser::ReadLine() Reading exactly 5 bytes. >> HokuyoLaser::ReadLine() Read 5 bytes. >> HokuyoLaser::ReadLine() Line is >> error : hokuyo_aist: Failed to setup laser driver: (3) Incorrect >> command echo: CR != >> error : Driver failed to Setup (-1) >> error : Select called failed in File Watcher: 4 Interrupted system call >> Quitting. >> closing TCP connection to client 0 on port 6665 >> >> >> The laser is set to 19200, but a later command is failing it seems >> (Error : hokuyo_aist: Failed to setup laser driver: (3) Incorrect >> command echo: CR != ) >> >> I think the solution is around the corner. Mayb some missing FLUSH >> somewhere? >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Playerstage-users mailing list > Playerstage-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/playerstage-users > -- Dipl. Inform. Markus Eich Research Assistant DFKI Bremen German Research Center for Artificial Intelligence Email: markus.eich@dfki.de Tel.: +49 (421) 218-64105 Fax : +49 (421) 218-64150 Room: 212 Postal address: Markus Eich DFKI Bremen Robert-Hooke-Strasse 5 28359 Bremen Germany Further informations: http://www.dfki.de/robotics ------------------------------------------------------------------------------------------- Deutsches Forschungszentrum fu"r Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Stra?e 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 --------------010605080806020307040200 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Here comes the output using the config file:

driver
(
        name "hokuyo_aist"
        provides ["ranger:0"]
        portopts "type=serial,device=/dev/ttyS1,timeout=1,baud=19200,debug=3"
        verbose 1
        baud_rate 115200
)

The Scanner is switched on and hence is using baud 19200.
After the driver gets stuck, the scanner is using 115200Baud  so the setup of the scanner was successful. Then it get stuck with a timeout error. When i try again after, using portops with 115200, the scanner is running perfectly

Cheers,

/Markus





gbiggs schrieb:
I'm not sure the problem is needing to flush the port, as there
shouldn't be any data on the port after changing the baud rate. Can you
add the debug=3 option to that config file (leave verbose on as well)
and send the log?

Geoff

Markus Eich wrote:
  
Thank you. The driver is now able to connect and  reconnect.

But there is still a problem with the OpenWithProbing method. If the
baud rate in the config is different within the portopts and the baud_rate

my config:
driver
(
        name "hokuyo_aist"
        provides ["ranger:0"]
        portopts "type=serial,device=/dev/ttyS1,timeout=1,baud=115200"
        verbose 1
        baud_rate 19200
)


It seems the probing is working so far (laser was at 115200 baud). Than
the laser is set to 19200

//from complete log at the end

HokuyoLaser::SendCommand() Writing in SCIP2 mode. Command is SS,
parameters length is 6
HokuyoLaser::ReadLine() Reading exactly 9 bytes.
HokuyoLaser::ReadLine() Read 9 bytes.
HokuyoLaser::ReadLine() Line is SS019200
HokuyoLaser::ReadLine() Reading exactly 4 bytes.
HokuyoLaser::ReadLine() Read 4 bytes.
HokuyoLaser::ReadLine() Line is 00P
HokuyoLaser::ReadLineWithCheck() Considering 2 bytes for checksum from a
line length of 3 bytes.
HokuyoLaser::ReadLineWithCheck() Calculated checksum = 80 (P), given
checksum = 80 (P)
HokuyoLaser::SendCommand() Command response status: 00
HokuyoLaser::SkipLines() Skipping 1 lines.
HokuyoLaser::SetMotorSpeed() Reseting motor speed to default.
HokuyoLaser::SendCommand() Writing in SCIP2 mode. Command is CR,
parameters length is 2
HokuyoLaser::ReadLine() Reading exactly 5 bytes.
HokuyoLaser::ReadLine() Read 5 bytes.
HokuyoLaser::ReadLine() Line is
error   : hokuyo_aist: Failed to setup laser driver: (3) Incorrect
command echo: CR !=
error   : Driver failed to Setup (-1)
error   : Select called failed in File Watcher: 4 Interrupted system call
Quitting.
closing TCP connection to client 0 on port 6665


The laser is set to 19200, but a later command is failing it seems
(Error   : hokuyo_aist: Failed to setup laser driver: (3) Incorrect
command echo: CR != )

I think the solution is around the corner. Mayb some missing FLUSH
somewhere?
    


------------------------------------------------------------------------------
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users
  


-- 
Dipl. Inform. Markus Eich
Research Assistant
DFKI Bremen
German Research Center for Artificial Intelligence

Email:  markus.eich@dfki.de
Tel.:   +49 (421) 218-64105
Fax :   +49 (421) 218-64150
Room:   212

Postal address:
Markus Eich
DFKI Bremen
Robert-Hooke-Strasse 5
28359 Bremen
Germany

Further informations:
http://www.dfki.de/robotics
-------------------------------------------------------------------------------------------

Deutsches Forschungszentrum für Kuenstliche Intelligenz GmbH

Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern

 

Geschaeftsfuehrung:

Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff

 

Vorsitzender des Aufsichtsrats:

Prof. Dr. h.c. Hans A. Aukes

 

Amtsgericht Kaiserslautern, HRB 2313
--------------010605080806020307040200--