-
Notifications
You must be signed in to change notification settings - Fork 70
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
Receiving Mid0004 INVALID_DATA for tightening subscription through Mid0008 #101
Comments
Hi, you could try subscribing to the service by specifying a lower revision. The library tries to subscribe to the service with LAST_REVISION = 7 but the screwdriver does not necessarily support that revision.... |
Thanks for your response. I have tried that already, actually I've tried all revisions. No matter which I choose, I get the INVALID_DATA. Does the INVALID_DATA message imply the message is not supported? I would expect SUBSCRIBED_MID_UNSUPPORTED for that, or SUBSCRIBED_MID_REVISION_UNSUPPORTED if the revision is not supported. Edit: it seems to be the mid0008 message is malformed, hence the INVALID_DATA. But I cannot find documentation or examples on mid0008 Regards, |
Hi Lon,
for ATLAS screwdrivers it happened that with a too advanced revision the
INVALID_DATA error was returned, for other brands I don't know sorry.
Regards ,
Roberto
Il giorno lun 29 mag 2023 alle ore 10:43 Lon Heijnen <
***@***.***> ha scritto:
… Hi, you could try subscribing to the service by specifying a lower
revision. The library tries to subscribe to the service with LAST_REVISION
= 7 but the screwdriver does not necessarily support that revision....
Thanks for your response.
I have tried that already, actually I've tried all revisions. No matter
which I choose, I get the INVALID_DATA. Does the INVALID_DATA message imply
the message is not supported? I would expected SUBSCRIBED_MID_UNSUPPORTED
for that, or SUBSCRIBED_MID_REVISION_UNSUPPORTED if the revision is not
supported.
Regards,
Lon
—
Reply to this email directly, view it on GitHub
<#101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACT7RNGMY4K3KNRSPBRVWTLXIROUNANCNFSM6AAAAAAYQWAOBY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello @lonheijnen ! I appreciate that and it's always rewarding knowing that the lib is helping more people. About your problem, the lack of information and documentation of Atlas Copco devices are always the major problem while developing. Well, since you've tested all revisions already, I believe it's something with Extra Data Length or Extra Data. Some controllers are a bit weird while parsing and the do not follow the same behaviour of the documentation as it is described, so, I would recommend you if you can try sending it without adding the extra data length like: You must do it without using de NuGet package, since now it will always add Give us any feedback if you find something else! |
@Rickedb I actually already tried ommitting the extradata (length). But I did not yet try with the spaces rather than the zeros at the end. I will give this a try. |
Leaving out the zeroes at the end or replacing by spaces does not help either. So this INVALID_DATA does not seem to imply that the message format is incorrect. |
It's a bit weird btw, Mid 0060 is one of the most common subscriptions to subscribe. However, since you could subscribe to 0900, it might be a problem with the controller itself, is it in the latest available firmware? |
We have upgraded the software but that did not help. It turns out, for the MTF6000 the 0061 is not supported. Instead there is a different event to subscribe to: "1201 operation result overall data". Once subscribed you will receive a 1201 back. And once the device is used for tightening 1202 messages will come containing tightening details. (The 1201 that you receive back is not being parsed properly by the way, but I don't think it contains valuable information anyway) Thanks for all the help. And again, kudos on creating such a nice library. Regards, |
But is there any solution to retrieve the tightenings from MTF6000? Also, if it's parsing wrong, if you could please provide an ASCII example so we can fix it at the library it would be good! |
I don't think so. The only way to get tightening details seems to be the 1201/1202 messages. This is the full string: As a byte array
P.s. I noticed the Mid0009 is not implemented to unsubscribe from events. |
I'm facing the same issue.
The result looks like I couldn't find any infos how to register the message parser for the Edit: Nevermind, just needed to add Thank you! |
Hi @AndreasReitberger, there is still no way of providing the desired subscription mid to I will keep it at the backlog. |
Hi,
First of all I would like to express my appreciation of this library. When I first read up on the documentation I was imagining having some kind of collection in Mid classes to cover the specific data for different revisions of the messages. This library really does a great job of covering that.
Now as for my issue.
I am trying to subscribe to the tightening results for a client I am developing for a MTF6000.
At first I was trying to do this by directly sending out a Mid0060, but this results in a Mid0004 containing error code UNKNOWN_MID.
Next I tried subscribing to a different event, the Alarms, again I received an UNKNOWN_MID.
After some Googling I found some documentation on interfacing with a MTF0600, this states that for this device you need to send a Mid0008 with the required subscription Mid + revision.
After finding this I was quite hopeful, however when I tried this I received a Mid0004 with error code INVALID_DATA.
From this I take that the message is probably missing some data, however I cannot find any documentation on Mid0008.
Does anybody have any experience in subscribing to events through the Mid0008 message?
Below an excerpt of my Subscribe method, which is determining which Mid to pass to Mid0008 to setup a subscription.
The mid being generated:
"00290008001 006000700"
Any help is greatly appreciated :)
Thanks in advance,
Lon Heijnen
The text was updated successfully, but these errors were encountered: