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

Aircraft config packets get forwarded #1

Open
norrisng opened this issue Sep 20, 2018 · 2 comments
Open

Aircraft config packets get forwarded #1

norrisng opened this issue Sep 20, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@norrisng
Copy link
Owner

norrisng commented Sep 20, 2018

Aircraft config packets ($CQ, @N, @S etc.) also get forwarded by the client.

Examples (as seen inside Discord):

AAL123:
Here's a test message
$CQLAN2250:@94836:ACC:{"config":{"lights":{"strobe_on":true}}

LON_CTR:
Insert message here
@ N:EZY123:2000:1:47.81881:9.46934:33358:439:4257229744:-172

@norrisng norrisng added the bug Something isn't working label Sep 20, 2018
@norrisng
Copy link
Owner Author

norrisng commented Oct 8, 2018

It appears that these packets can appear before or after any message packet. Seems like multiple FSD packets are (randomly) bundled into a single TCP packet's payload.

@norrisng
Copy link
Owner Author

Packets are separated via line breaks, and it appears that existing clients enforce this by not allowing line breaks to be entered in messages.

For instance, when text containing line breaks are pasted into vPilot, it will remove everything after the first line break.

In other words, it should be safe to assume that \r\n marks the end of an FSD packet in all cases.

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

1 participant