{"action":"created","issue":{"url":"https://api.github.com/repos/openETCS/modeling/issues/893","labels_url":"https://api.github.com/repos/openETCS/modeling/issues/893/labels{/name}","comments_url":"https://api.github.com/repos/openETCS/modeling/issues/893/comments","events_url":"https://api.github.com/repos/openETCS/modeling/issues/893/events","html_url":"https://github.com/openETCS/modeling/issues/893","id":115469577,"number":893,"title":"C API: how to send binary SRS message to Scade Model","user":{"login":"didierersa","id":5337438,"avatar_url":"https://avatars.githubusercontent.com/u/5337438?v=3","gravatar_id":"","url":"https://api.github.com/users/didierersa","html_url":"https://github.com/didierersa","followers_url":"https://api.github.com/users/didierersa/followers","following_url":"https://api.github.com/users/didierersa/following{/other_user}","gists_url":"https://api.github.com/users/didierersa/gists{/gist_id}","starred_url":"https://api.github.com/users/didierersa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didierersa/subscriptions","organizations_url":"https://api.github.com/users/didierersa/orgs","repos_url":"https://api.github.com/users/didierersa/repos","events_url":"https://api.github.com/users/didierersa/events{/privacy}","received_events_url":"https://api.github.com/users/didierersa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JakobGartner","id":8400941,"avatar_url":"https://avatars.githubusercontent.com/u/8400941?v=3","gravatar_id":"","url":"https://api.github.com/users/JakobGartner","html_url":"https://github.com/JakobGartner","followers_url":"https://api.github.com/users/JakobGartner/followers","following_url":"https://api.github.com/users/JakobGartner/following{/other_user}","gists_url":"https://api.github.com/users/JakobGartner/gists{/gist_id}","starred_url":"https://api.github.com/users/JakobGartner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakobGartner/subscriptions","organizations_url":"https://api.github.com/users/JakobGartner/orgs","repos_url":"https://api.github.com/users/JakobGartner/repos","events_url":"https://api.github.com/users/JakobGartner/events{/privacy}","received_events_url":"https://api.github.com/users/JakobGartner/received_events","type":"User","site_admin":false},"milestone":null,"comments":28,"created_at":"2015-11-06T09:37:18Z","updated_at":"2015-11-20T08:36:55Z","closed_at":null,"body":"Dear all,\r\n\r\nWe are currently in the process to decode/encode binary data to fill the Scade model with balise and radio data. As you may know, our tools use binary data that strictly follows the rules defined in chapter 7 and 8 of the SRS and since we are in charge of the gluecode we need to translate it to something that can be understood by the Scade.\r\n\r\nTo be sure we are doing the right things and because we cannot really test until almost every thing has been correctly coded decoded, may we ask you to confirm the process by looking above the pseudo code, especially can you confirm that we use the right API for the task:\r\n\r\n- for each telegram:\r\n    - decode telegram header (Q_UPDOWN, M_VERSION, ... Q_LINK) to API_fromTrack.btm_msg.api_header.*\r\n    - for each packet\r\n        - for each variable\r\n            - put decoded value in API_fromTrack.packets.PacketData[ Variable_Index ]\r\n        - end for\r\n        - put index of the first variable in API_fromTrack.packets.PacketHeaders[ Header_Index ].startAddress\r\n        - put index of the last variable in API_fromTrack.packets.PacketHeaders[ Header_Index ].endAddress\r\n    - end for\r\n    - if error then API_fromTrack.btm_msg.api_bad_balise_received = true\r\n- end for \r\n\r\nBest regards,\r\nDidier"},"comment":{"url":"https://api.github.com/repos/openETCS/modeling/issues/comments/158324222","html_url":"https://github.com/openETCS/modeling/issues/893#issuecomment-158324222","issue_url":"https://api.github.com/repos/openETCS/modeling/issues/893","id":158324222,"user":{"login":"didierersa","id":5337438,"avatar_url":"https://avatars.githubusercontent.com/u/5337438?v=3","gravatar_id":"","url":"https://api.github.com/users/didierersa","html_url":"https://github.com/didierersa","followers_url":"https://api.github.com/users/didierersa/followers","following_url":"https://api.github.com/users/didierersa/following{/other_user}","gists_url":"https://api.github.com/users/didierersa/gists{/gist_id}","starred_url":"https://api.github.com/users/didierersa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didierersa/subscriptions","organizations_url":"https://api.github.com/users/didierersa/orgs","repos_url":"https://api.github.com/users/didierersa/repos","events_url":"https://api.github.com/users/didierersa/events{/privacy}","received_events_url":"https://api.github.com/users/didierersa/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T08:36:55Z","updated_at":"2015-11-20T08:36:55Z","body":"Dear all,\r\n\r\nThe main problem I face is the multiple occurrence of kcg_const.h, kcg_types.h, kcg_xxx.h, which leads to multiple definition of same symbols. For us, we really need one codebase, with everything that we need correctly glued together. We cannot merge multiple source and hope that there will be no conflicts. While promising, this new interface require too much work until everything is generated in a single shot. It cannot be WP5 job to integrate the source from:\r\n- srcAndBinary/Green openETCS Non-Vital Demonstrator/Source Code/Source Code ETCS Onboard Unit System/Generated_Code/KCG-ERSA\r\n- srcAndBinary/API_for_ERSa/KCG-ERSA/\r\n- srcAndBinary/Simulation_EnvSim/"}}