ublox icon indicating copy to clipboard operation
ublox copied to clipboard

U-Blox ASIO input buffer read error: Operation canceled, collecting data from ublox EVK-M8T

Open weisongwen opened this issue 8 years ago • 26 comments

Hi, when I use this ublox driver to collect data from ublox EVK-M8T using the mini-USB port, I get the error as following error my launch file is : image

Operation canceled, collecting data from ublox EVK-M8T this seems to be the main error. I have tried the method mentioned in herehttps://github.com/KumarRobotics/ublox/issues/20, but it does not work.

do you have any advice on this error?

weisongwen avatar Nov 09 '17 11:11 weisongwen

Hi, @kartikmohta sorry to bother you here, do you have any advice on this issue?

weisongwen avatar Nov 13 '17 00:11 weisongwen

Hi, Can you try the latest version from the repo? If that does not fix the problem, can you run the ublox_gps node under gdb following the instructions at http://wiki.ros.org/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB and paste the backtrace from gdb when it crashes? (You can set respawn to false for this).

kartikmohta avatar Dec 08 '17 03:12 kartikmohta

Run into same issue here's what i got from the gdb jdb

May be it's because i run it on ARM linux

Kortium avatar Dec 10 '17 01:12 Kortium

@Kortium Can you provide the backtrace from gdb? That may help in debugging where the problem is occurring.

kartikmohta avatar Dec 10 '17 01:12 kartikmohta

Here it is

jdb2

Kortium avatar Dec 10 '17 01:12 Kortium

Hi @kartikmohta @Kortium , I am so glad to get both of your suggestions. I get such issue again. I debugged this error, and finally found that this package did not support the Ublox EVK M8T product. It seems that the driver for M8T have not been finished yet.

Best Welson

weisongwen avatar Dec 11 '17 01:12 weisongwen

@Kortium @weisongwen Can you try again with the latest version from the master branch? Commit 4570130ad5adae4add35feda10a806b6d6d7ad9d fixed a bug which could have led to segfaults.

kartikmohta avatar Dec 12 '17 00:12 kartikmohta

Hi @kartikmohta Thanks for your effort. I will try this first.

Best Welson Wen

weisongwen avatar Dec 12 '17 04:12 weisongwen

My results:

gdb

Kortium avatar Dec 12 '17 10:12 Kortium

Hi, @Kortium Thanks for your share of your result. I want to confirm one thing: the device you used is ublox EVK M8T?

Best Welson

weisongwen avatar Dec 12 '17 11:12 weisongwen

Hi, @weisongwen That's a good question. No my device is C94-M8P-3 (devkit). But issue looks the same...

Kortium avatar Dec 12 '17 12:12 Kortium

Hi, @kartikmohta Thanks for your suggestion. I tested the new package again and I find that issue again. also I got the warning from the node.h file:

void getRosParams() {
    ROS_WARN("Functionality specific to u-blox TIM devices is only %s",
        "partially implemented. See TimProduct class in node.h & node.cpp.");
  }

It seems that this package do not support the ublox EVK M8T device?

Best Welson

weisongwen avatar Dec 12 '17 13:12 weisongwen

@Kortium It seems like the resetting is not working properly for your device, can you try enabling the gnss/qzss option in the param file and try again? From your output, looks like the QZSS Configuration is the only one causing a GNSS re-configuration.

@weisongwen I think a similar problem for you, can you enable the gnss/glonass option in the param file and retry?

I only have a M8N device to test here and the driver works perfectly with that.

kartikmohta avatar Dec 12 '17 21:12 kartikmohta

@kartikmohta @weisongwen Thanks a lot for opening this question and helping me, i have misformed config file ~ . ~ Now it works!

Kortium avatar Dec 12 '17 23:12 Kortium

Hi,@kartikmohta Thanks for your kind reply. Autally, I also have a M8N in hand. this driver works well with M8N. But not compatable with M8T .

I will test the M8T as your advice. Thanks!

Best Welson

weisongwen avatar Dec 13 '17 01:12 weisongwen

Hi @Kortium Can you share your config file to me ? Thanks a lot.

weisongwen avatar Jan 26 '18 08:01 weisongwen

Dear @kartikmohta Thanks for your effort on maintaining this package, It is mentioned in the Readme part: `` For FTS & TIM devices:

currently unimplemented. See FtsProduct and TimProduct classes in ublox_gps package node.h & node.cpp files.

`` does TIM devices means the Ublox M8T ?

Best Welson

weisongwen avatar Jan 26 '18 09:01 weisongwen

@weisongwen TIM means devices with timing feature (https://www.u-blox.com/en/timing) so M8T devices are not fully supported right now.

kartikmohta avatar Feb 08 '18 19:02 kartikmohta

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >' what(): write: Input/output error Aborted (core dumped)

could you please help me

benjaminsamsonnettr avatar Apr 06 '18 12:04 benjaminsamsonnettr

I also had this error: U-Blox ASIO input buffer read error: Operation canceled, 0

Solved it by changing tmode3 to 0 in the config file...

KLelkov avatar May 18 '18 18:05 KLelkov

For those using the M8T modules, please use this gentleman's modified repository: https://github.com/flynneva/ublox.git2

After much frustration with my M8T module, I found this repo to work wonderfully.

MrBanannaMan avatar Jun 12 '18 18:06 MrBanannaMan

hi @MrBanannaMan, thanks for your information, but this https://github.com/flynneva/ublox.git2 can not be opened. seems that this package is not existed.

weisongwen avatar Jun 13 '18 01:06 weisongwen

@weisongwen Hi Welson, My apologies, a "2" snuck it's way into that link at the very end. Try this:

https://github.com/flynneva/ublox

MrBanannaMan avatar Jun 13 '18 02:06 MrBanannaMan

hi @MrBanannaMan
thanks for your kind information, best welson

weisongwen avatar Jun 14 '18 00:06 weisongwen

@MrBanannaMan Hi, have you find that where we can obtain the pseudorange measurements from this package? moreover, this package seems cannot work with the Beidou satellites.

best welson

weisongwen avatar Jun 25 '18 11:06 weisongwen

Hi Welson,

Take a look at the config file you are using to launch the m8t. It should be in the 'ublox_gps/config/' directory....probably set to the 'c94_m8t_base.yaml'.

According to the wiki for this ublox package......Beidou satellites are default set to off.

Add the following lines to your yaml file and it should work:

gnss:
  beidou: true

flynneva avatar Jun 30 '18 16:06 flynneva