{"action":"created","issue":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/46","labels_url":"https://api.github.com/repos/jeelabs/esp-link/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/jeelabs/esp-link/issues/46/comments","events_url":"https://api.github.com/repos/jeelabs/esp-link/issues/46/events","html_url":"https://github.com/jeelabs/esp-link/issues/46","id":106036180,"number":46,"title":"Can't send more than ~2140 characters at 115200","user":{"login":"poleguy","id":13422719,"avatar_url":"https://avatars.githubusercontent.com/u/13422719?v=3","gravatar_id":"","url":"https://api.github.com/users/poleguy","html_url":"https://github.com/poleguy","followers_url":"https://api.github.com/users/poleguy/followers","following_url":"https://api.github.com/users/poleguy/following{/other_user}","gists_url":"https://api.github.com/users/poleguy/gists{/gist_id}","starred_url":"https://api.github.com/users/poleguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poleguy/subscriptions","organizations_url":"https://api.github.com/users/poleguy/orgs","repos_url":"https://api.github.com/users/poleguy/repos","events_url":"https://api.github.com/users/poleguy/events{/privacy}","received_events_url":"https://api.github.com/users/poleguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T15:40:19Z","updated_at":"2015-09-11T15:55:47Z","closed_at":null,"body":"I am trying to use your esp-link in transparent mode to replace a serial port. The port presents a prompt and I send a dump command. It seems to work okay until the dump returns about 2140 characters. At this point I lose the final characters of the dump. Is this expected?\r\n\r\nI do see the final characters and prompt correctly on the microcontroller console.\r\n\r\nI suspect this is a flow control issue. I don't see any debug messages. I'm using V1.0.1 on a ESP-01\r\n\r\nI read your blog, but I don't see any reason why a large packet coming from the UART side would cause flow control issues. Any idea?\r\n\r\nIf this is hopeless I'd like to know, otherwise I might have a look at the code and try to fix it myself."},"comment":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/comments/139583391","html_url":"https://github.com/jeelabs/esp-link/issues/46#issuecomment-139583391","issue_url":"https://api.github.com/repos/jeelabs/esp-link/issues/46","id":139583391,"user":{"login":"tve","id":39480,"avatar_url":"https://avatars.githubusercontent.com/u/39480?v=3","gravatar_id":"","url":"https://api.github.com/users/tve","html_url":"https://github.com/tve","followers_url":"https://api.github.com/users/tve/followers","following_url":"https://api.github.com/users/tve/following{/other_user}","gists_url":"https://api.github.com/users/tve/gists{/gist_id}","starred_url":"https://api.github.com/users/tve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tve/subscriptions","organizations_url":"https://api.github.com/users/tve/orgs","repos_url":"https://api.github.com/users/tve/repos","events_url":"https://api.github.com/users/tve/events{/privacy}","received_events_url":"https://api.github.com/users/tve/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T15:55:47Z","updated_at":"2015-09-11T15:55:47Z","body":"Mhhh, this is definitely supposed to work. What baud rate are you using and do I understand correctly that the attached uC sends the 2140 chars at full line speed? I suspect that there may be some buffer overflow issue, make sure you have a good wifi connection (the -01 modules don't have a great RF section).\r\nThe buffer management for this stuff is some of the oldest code and due for a remake using more dynamic allocation and some of the newer learnings about the SDK... However, if the buffer overflows you should see \"espbuffsend: txbuffer full on conn %p\" in the debug console. If you see that you could increase it at https://github.com/jeelabs/esp-link/blob/v1.0.1/serial/serbridge.h#L12 but now that I look at the code, I see a bug, which is that I \"free\" the buffer when I send it (https://github.com/jeelabs/esp-link/blob/v1.0.1/serial/serbridge.c#L48) and I really need to keep the content intact until I get the sent callback (https://github.com/jeelabs/esp-link/blob/v1.0.1/serial/serbridge.c#L77-L84).\r\nLet me know if you'd like a test build with that fixed and the level of urgency..."}}