{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7204","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7204/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7204/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7204/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/7204","id":331915876,"node_id":"MDU6SXNzdWUzMzE5MTU4NzY=","number":7204,"title":"TCPsocket and UDPsocket Speed","user":{"login":"flipflop22","id":3328557,"node_id":"MDQ6VXNlcjMzMjg1NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3328557?v=4","gravatar_id":"","url":"https://api.github.com/users/flipflop22","html_url":"https://github.com/flipflop22","followers_url":"https://api.github.com/users/flipflop22/followers","following_url":"https://api.github.com/users/flipflop22/following{/other_user}","gists_url":"https://api.github.com/users/flipflop22/gists{/gist_id}","starred_url":"https://api.github.com/users/flipflop22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipflop22/subscriptions","organizations_url":"https://api.github.com/users/flipflop22/orgs","repos_url":"https://api.github.com/users/flipflop22/repos","events_url":"https://api.github.com/users/flipflop22/events{/privacy}","received_events_url":"https://api.github.com/users/flipflop22/received_events","type":"User","site_admin":false},"labels":[{"id":515345275,"node_id":"MDU6TGFiZWw1MTUzNDUyNzU=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/component:%20networking","name":"component: networking","color":"5319e7","default":false},{"id":427713129,"node_id":"MDU6TGFiZWw0Mjc3MTMxMjk=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed","default":false},{"id":28847983,"node_id":"MDU6TGFiZWwyODg0Nzk4Mw==","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20question","name":"type: question","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-13T09:35:17Z","updated_at":"2018-06-14T03:42:24Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n<!-- \r\n    Required\r\n    Add detailed description of what you are reporting.\r\n    Good example: https://os.mbed.com/docs/latest/reference/workflow.html\r\n    Things to consider sharing:\r\n    - What target does this relate to?\r\n    - What toolchain (name + version) are you using?\r\n    - What tools (name + version - is it mbed-cli, online compiler or IDE) are you using?\r\n    - What is the SHA of Mbed OS (git log -n1 --oneline)?\r\n    - Steps to reproduce. (Did you publish code or a test case that exhibits the problem?)\r\n-->\r\nMy setup:\r\n-EVK-ODIN-W2\r\n-GCC ARM Embedded Toolchain\r\n-MBED-CLI\r\nI want to send a data with 20 bytes size with the speed of 1 MHz. I have always fails to achieve this speed with TCP or UDP. The fastest I can get is with UDP 1kHz (in average). Is there a way to optimize this speed???\r\n\r\nhere to reproduce: \r\nI create a UDPsocket\r\n`UDPSocket udpsocket`\r\nthe run a while loop to send\r\n`do{\r\nudpsocket.sendto(\"IP Address\", port, buffer, strlen(buffer)} while(true);\r\n`\r\n### Issue request type\r\n<!-- \r\n    Required\r\n    Please add only one X to one of the following types. Do not fill multiple types. (Split the issue otherwise.)\r\n    Please note this is not a GitHub task list; indenting the boxes or changing the format to add a '.' or '*' in front\r\n    of them changes the meaning incorrectly. The only changes to make are to add a description under the\r\n    description heading and to add an 'x' to the correct box.\r\n\r\n    [X] Question\r\n    [ ] Enhancement \r\n    [ ] Bug \r\n-->\r\n\r\n[X] Question  \r\n[ ] Enhancement  \r\n[ ] Bug  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/397160723","html_url":"https://github.com/ARMmbed/mbed-os/issues/7204#issuecomment-397160723","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7204","id":397160723,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzE2MDcyMw==","user":{"login":"flipflop22","id":3328557,"node_id":"MDQ6VXNlcjMzMjg1NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3328557?v=4","gravatar_id":"","url":"https://api.github.com/users/flipflop22","html_url":"https://github.com/flipflop22","followers_url":"https://api.github.com/users/flipflop22/followers","following_url":"https://api.github.com/users/flipflop22/following{/other_user}","gists_url":"https://api.github.com/users/flipflop22/gists{/gist_id}","starred_url":"https://api.github.com/users/flipflop22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipflop22/subscriptions","organizations_url":"https://api.github.com/users/flipflop22/orgs","repos_url":"https://api.github.com/users/flipflop22/repos","events_url":"https://api.github.com/users/flipflop22/events{/privacy}","received_events_url":"https://api.github.com/users/flipflop22/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T03:42:24Z","updated_at":"2018-06-14T03:42:24Z","author_association":"NONE","body":"> - udp frame 64 bits\r\n\r\nUDP frame 64 bits here is the payload? Or also include overheads?\r\nIf it is the payload: Does this means that the function below expecting buffer of 64 bits? Means that if I pass more than 64 bits the next data will be send at the next UDP frame?\r\n`udpsocket.sendto(\"IP Address\", port, buffer, strlen(buffer))`\r\n\r\n> So the possible transfer speed is much lesser, maybe round about 60..70 kHz maximum.\r\n\r\nhow big is the buffer I should send to achieve this speed?\r\n"}}
{"actor":{"display_login":"flipflop22"}}