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

Checksum errors sur datagrammes 7610 #27

Open
glabmoris opened this issue Nov 21, 2018 · 1 comment
Open

Checksum errors sur datagrammes 7610 #27

glabmoris opened this issue Nov 21, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@glabmoris
Copy link
Contributor

glabmoris commented Nov 21, 2018

On a des erreurs de checksum sur un des fichiers S7K Seabat lors du parsing de datagrammes 7610

glm@Omega:~/src/MBES-lib$ ./build/bin/datagram-dump test/data/s7k/20170529_111841_Seabat.s7k
(...)
2017-149 11:18:41.554432
Type: 7610
Bytes: 80
--------------------
Checksum error
(...)
@JordanMcManus
Copy link

In the current version MBES-lib, packets 7610 are not processed

if (ignoreChecksum || checksum == computedChecksum) {
    processor.processDatagramTag(drf.RecordTypeIdentifier);

    //Process data according to record type
    if (drf.RecordTypeIdentifier == 1016) {
        //Attitude
        processAttitudeDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 1012) {
        //roll pitch heave
        processPitchRollDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 1013) {
        //heading
        processHeadingDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 1003) {
        //Position
        processPositionDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 7027) {
        //Ping
        processPingDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 7000) {
        //Sonar settings
        processSonarSettingsDatagram(drf, data);
    } else if (drf.RecordTypeIdentifier == 1010) {
        //CTD
        processCtdDatagram(drf, data);
    }
    //TODO: process other stuff

} else {
    //std::cout << "checksum: " << checksum << std::endl;
    //std::cout << "computedChecksum: " << computedChecksum << std::endl;
    //std::cout << "drf.RecordTypeIdentifier: " << drf.RecordTypeIdentifier << std::endl;
    //printf("Checksum error\n");
    //Checksum error...lets ignore the packet for now
    //throw new Exception("Checksum error");
    continue;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants