Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INMEARawFeed getInputStream not working correctly #5

Open
barberdt opened this issue Sep 12, 2011 · 3 comments
Open

INMEARawFeed getInputStream not working correctly #5

barberdt opened this issue Sep 12, 2011 · 3 comments
Assignees
Milestone

Comments

@barberdt
Copy link

I have a test that prints out a set number of bytes from the getInputStream method in the INMEARawFeed interface. In my 2.1 testing, this would printout the raw NMEA data. For 3.0, It does not appear to print out anything. Again, this may be a problem with me porting my test suite over to 3.0.

Pastes:
Code: http://pastebin.com/RjvLsVWt

@kgilmer
Copy link
Contributor

kgilmer commented Sep 13, 2011

Hmm, could be a problem What's "inrf"? Can I have the whole project to run with?

@ghost ghost assigned kgilmer Sep 13, 2011
@barberdt
Copy link
Author

Hey Ken,

If you go to the wiki for the sdk-test repo, you should be able to get an idea of how everything is running and even run it yourself. For this bug, I am running the com.buglabs.bug.module.gps.tests bundle alongside blueback. Let me know if that doesn't make sense after reading the wiki overview.

Thanks,
Davis

@kgilmer
Copy link
Contributor

kgilmer commented Sep 14, 2011

Hi Davis,

I'm unable to repro your problem. When I run /com.buglabs.bug.module.gps.tests/com/buglabs/bug/module/gps/tests/TestINMEARawFeed.java I am able to get the input stream and the test prints:

Running Test: testGetInputStream(com.buglabs.bug.module.gps.tests.TestINMEARawFeed)

1024 Bytes Read:
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,_78
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,_78
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,_78
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,_7C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,_76
$GPGGA,001037.075,,,,,0,00,,,M,0.0,M,,0000_51
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,_7C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGGA,001040.075,,,,,0,00,,,M,0.0,M,,0000_51
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,_78
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,_7C
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGGA,001048.063,,,,,0,00,,,M,0.0,M,,0000_5E
$GPGSA,A,1,,,,,,,,,,,,,,,_1E
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,_7C
$GPGGA,001052.075,,,,,0,00,,,M,0.0,M,,0000*52
$
...

I have a LCD and GPS device attached. I built your test in Eclipse and used the junit and hamcrest jars provided in the git repo as suggested in your documentation. My test build version:

cat /etc/buildinfo

BUG Linux Build Information
Version: 2.5.0906111410
Build Host: Linux darner 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64 GNU/Linux
Build User: root
Build Time: Tue Sep 6 18:10:52 UTC 2011
Revision: c9187ae

I'll leave it to you to decide what to do next...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants