android Bluetoothchat와 Atmega128 BT(HC-06) 통신시 이슈 by 설악이

안드로이드 예제 블루투스 채팅에서  Phone에서 나가는 데이터는 잘 받아지나.
ATmega128에서 오는 데이터는 자꾸 첫번째 바이트 읽고 나머지 바이트를 읽는 이슈가 있어서..
BluetoothChatService.java에서 아래와 같이 수정하였음.

이렇게 되면 문제 되는 부분은 해결이 된다. ㅋㅋㅋ 좋구나~~

 public void run() {
            Log.i(TAG, "BEGIN mConnectedThread");
            byte[] buffer = new byte[1024];
            int bytes;

            int check_bytes = 0;
            byte[] buffer_b = new byte[1024];
            // Keep listening to the InputStream while connected
            while (true) {
                try {
                    // Read from the InputStream
                    bytes =;
                    if(bytes == 1)
                    //buffer_b 에 buffer 를 1byte copy
                        System.arraycopy(buffer, 0, buffer_b, 0, 1);
                    check_bytes = 1;
                    //buffer_b에 buffer를 붙이고 bytes+1 해서 보냄
                    System.arraycopy(buffer, 0, buffer_b, 1, bytes); 
                            mHandler.obtainMessage(Sensor_mode.MESSAGE_READ, bytes+1, -1, buffer_b)
                    // Send the obtained bytes to the UI Activity
                            mHandler.obtainMessage(Sensor_mode.MESSAGE_READ, bytes, -1, buffer)
                } catch (IOException e) {
                    Log.e(TAG, "disconnected", e);


  • Michael 2019/07/14 11:58 # 삭제 답글

    Hey! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Many thanks!
  • Mark 2019/07/14 19:15 # 삭제 답글

    This event occurred rigt after the time Mario return to the Mushroom Kingdom so it had to take place after
  • William 2019/07/15 05:44 # 삭제 답글

    Heya i am for the first time here. I found this board and I find It really useful &amp it helped me out much. I hope to give something back and aid others like you helped me.
  • Thomas 2019/07/16 15:14 # 삭제 답글

    A megapolis megabucks gratuit failed to seem to cause waste materials in addition
  • David 2019/07/18 05:06 # 삭제 답글

    I just couldn't go away your web site before suggesting that I really enjoyed the usual information an individual provide on your visitors? Is gonna be again continuously in order to check up on new posts
  • George 2019/07/19 16:53 # 삭제 답글

    I really like your writing style, good information, thankyou for posting D.
  • William 2019/07/19 22:50 # 삭제 답글

    obviously like your website however you need to check the spelling on several of your posts. Several of them are rife with spelling issues and I to find it very bothersome to tell the truth on the other hand I will definitely come again again.
  • Thomas 2019/07/20 00:28 # 삭제 답글

    Nice read, I just passed this onto a friend who was doing some research on that. And he just bought me lunch since I found it for him smile So let me rephrase that Thank you for lunch! Whenever you have an efficient government you have a dictatorship. by Harry S Truman.
  • Donald 2019/07/20 01:50 # 삭제 답글

    Thanks for this article. I'd also like to convey that it can always be hard if you find yourself in school and starting out to initiate a long history of credit. There are many college students who are only trying to live and have long or good credit history can often be a difficult thing to have.
  • Daniel 2019/07/20 04:07 # 삭제 답글

    Hi. Only wanted to ask a quick issue. Now i am
  • William 2019/07/22 10:22 # 삭제 답글

    I like what you guys are up too. This kind of clever work and exposure!
  • Joseph 2019/07/22 16:07 # 삭제 답글

    Android Game Development takes more than knowledge
  • Thomas 2019/07/23 13:27 # 삭제 답글

    Have you ever considered about including
  • Charles 2019/07/24 21:22 # 삭제 답글

    Inspiring story, where did you quote it from?
  • Mark 2019/07/26 00:35 # 삭제 답글

    I'm really enjoying the design and layout of your website. It's a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Excellent work!
  • Paul 2019/07/31 06:54 # 삭제 답글

    Howdy very nice web site!! Guy .. Excellent .. Superb .. I'll bookmark your web site and take the feeds additionallyI am glad to search out so many helpful info here in the put up, we want develop more techniques in this regard, thanks for sharing.
  • James 2019/07/31 21:33 # 삭제 답글

    I think you have observed some very interesting details , appreciate it for the post.
  • Donald 2019/08/01 14:09 # 삭제 답글

    I really enjoy the blog post. Great.
  • Paul 2019/08/02 03:18 # 삭제 답글

    Hi, Neat post. There is a problem with your web site in internet explorer, would check this IE still is the market leader and a large portion of people will miss your magnificent writing because of this problem.
  • Charles 2019/08/02 04:39 # 삭제 답글

    I am truly thankful to the holder of this website who has shared this fantastic article at here.
  • Michael 2019/08/03 23:51 # 삭제 답글

    Thanks again for the blog post.Thanks Again. Cool.
  • Thomas 2019/08/04 01:24 # 삭제 답글

    free cell phone number lookup by name You can certainly see your
  • Richard 2019/08/04 09:41 # 삭제 답글

    Usually I do not read writeup on blogs, nevertheless I wish to say that this writeup extremely forced me to take a look at and do so! Your writing taste has been amazed me. Thanks, really wonderful post.
  • Donald 2019/08/04 13:52 # 삭제 답글

    I keep listening to the news update lecture about receiving boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i acquire some?
  • David 2019/08/05 15:04 # 삭제 답글

    I am no longer sure the place you're getting your info, but great topic. I needs to spend a while studying much more or understanding more. Thanks for wonderful info I was on the lookout for this info for my mission.
  • Richard 2019/08/09 05:56 # 삭제 답글

    Very interesting subject , appreciate it for posting . All human beings should try to learn before they die what they are running from, and to, and why. by James Thurber.
  • James 2019/08/10 23:04 # 삭제 답글

    You are my breathing in, I possess few blogs and very sporadically run out from to brand.
  • Michael 2019/08/11 01:46 # 삭제 답글

    omg! cant picture how quick time pass, after August, ber months time already and Setempber may be the 1st Christmas season in my location, I genuinely really like it!
  • Donald 2019/08/11 09:50 # 삭제 답글

    Hi to all, how is everything, I think every one is getting more from this site, and your views
  • George 2019/08/11 10:27 # 삭제 답글

    Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a little bit, but other than that, this is great blog. An excellent read. I will certainly be back.
  • James 2019/08/11 11:31 # 삭제 답글

    You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I'll try to get the hang of it!
  • Joseph 2019/08/11 13:54 # 삭제 답글

    Spot lets start off perform on this writeup, I seriously consider this astounding internet site needs much more consideration. Ill apt to become once again to find out to read considerably a lot more, thank you that information.
  • Thomas 2019/08/15 01:59 # 삭제 답글

    Over the course of the initial period, they began to flrm group identities.
  • Michael 2019/08/15 02:03 # 삭제 답글

    reverse phone lookup free results I am no longer positive
  • Charles 2019/08/15 13:50 # 삭제 답글

    I feel like Im regularly seeking interesting features you just read about a number of subjects, but I handle to add in the blog among our translates every day when you
  • Joseph 2019/08/15 14:52 # 삭제 답글

    Hiya, I am really glad I have found this information. Nowadays bloggers publish just about gossips and web and this is really annoying. A good blog with interesting content, that is what I need. Thanks for keeping this website, I'll be visiting it. Do you do newsletters? Can not find it.
  • David 2019/08/16 20:28 # 삭제 답글

    Thank you, I have just been searching for info about this subject for a long time and yours is the greatest I've found out so far. However, what about the bottom line? Are you positive concerning the supply?
  • Mark 2019/08/18 19:02 # 삭제 답글

    Low cost Gucci Handbags Is generally blogengine much much better than wp for reasons unknown? Should be which is turning out to be popluar today.
  • Daniel 2019/08/19 07:58 # 삭제 답글

    This design is incredible! You obviously know how to keep a reader amused.
  • Joseph 2019/08/21 16:41 # 삭제 답글

    Normally I do not read post on blogs, but I wish to say that this writeup very compelled me to try and do it! Your writing style has been surprised me. Thanks, quite great article.
  • Robert 2019/08/22 21:24 # 삭제 답글

    Im genuinely enjoying the style and layout of one's website. Its a very uncomplicated on the eyes which makes it a great deal much more enjoyable for me to come here and pay a visit to far more typically. Did you hire out a designer to make your theme? Excellent perform!
  • Paul 2019/08/23 07:06 # 삭제 답글

    You have brought up a very good details , thankyou for the post.
  • Richard 2019/08/25 12:06 # 삭제 답글

    Very efficiently written post. It will be valuable to anyone who usess it, as well as myself. Keep doing what you are doing i will definitely read more posts.
  • Daniel 2019/08/25 22:04 # 삭제 답글

    Wow! This blog looks exactly like my old one! It's on a completely different topic but it has pretty much the same page layout and design. Excellent choice of colors!
  • Thomas 2019/08/27 14:21 # 삭제 답글

    I am not sure where you are getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic information I was looking for this info for my mission.
  • Daniel 2019/08/29 16:05 # 삭제 답글

    Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how could we communicate?
  • Donald 2019/09/01 23:34 # 삭제 답글

    Your weblog is 1 of a kind, i really like the way you organize the topics.
  • Richard 2019/09/02 10:34 # 삭제 답글

    If you are going for best contents like myself, just pay a quick visit this web page everyday since it offers feature contents, thanks
  • Daniel 2019/09/06 12:13 # 삭제 답글

    Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is wonderful, let alone the content!
  • William 2019/09/07 03:27 # 삭제 답글

    Say, you got a nice blog post. Really Cool.
  • John 2019/09/08 14:57 # 삭제 답글

    This kind of game gives a real experience of building a
  • Daniel 2019/09/10 08:02 # 삭제 답글

    whoah this weblog is wonderful i love studying your posts. Stay up the great work! You know, many individuals are searching round for this info, you can aid them greatly.
  • Robert 2019/09/13 09:20 # 삭제 답글

    I needed to thank you for this good read!! I certainly enjoyed every little bit of it. I've got you bookmarked to check out new stuff you post
  • Charles 2019/09/21 22:32 # 삭제 답글

    Farmville farms even include free gift that is especially
  • Richard 2019/09/24 05:35 # 삭제 답글

    Hello! This is my first comment here so I just wanted to give a quick shout out and tell you I really enjoy
  • Joseph 2019/09/25 14:11 # 삭제 답글

    You have brought up a very excellent details , regards for the post.
  • Daniel 2019/09/25 20:32 # 삭제 답글

    coumadin valtrex interaction
  • James 2019/09/26 15:26 # 삭제 답글

    You are a really persuasive writer. I can see this in your writeup. You've a way of writing compelling info that sparks significantly interest.
  • Mark 2019/10/02 08:52 # 삭제 답글

    whoah this weblog is wonderful i really like studying your posts. Keep up the great paintings! You already know, lots of individuals are searching around for this information, you can help them greatly.
  • William 2019/10/03 22:46 # 삭제 답글

    I just couldnt depart your site prior to suggesting that I incredibly enjoyed the standard information an individual supply for your visitors? Is gonna be back often so that you can inspect new posts
  • Richard 2019/10/04 08:06 # 삭제 답글

    Excellent blog here! Also your web site loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as quickly as yours lol
  • William 2019/10/04 17:58 # 삭제 답글

    An fascinating dialogue is value comment. I believe that it is best to write more on this matter, it might not be a taboo topic but generally individuals are not sufficient to talk on such topics. To the next. Cheers
  • John 2019/10/07 12:33 # 삭제 답글

    My brother recommended I might like this website. He was totally right. This post truly made my day. You cann't imagine simply how much time I had spent for this info! Thanks!
  • Donald 2019/10/08 23:19 # 삭제 답글

    Article Source a viral game app is not
  • Thomas 2019/10/09 12:30 # 삭제 답글

    Because here is a list of multiplayer games is that the leave was asked
  • George 2019/10/11 00:34 # 삭제 답글

    Very energetic blog, I enjoyed that a lot. Perhaps there is a part 2?
  • Michael 2019/10/12 16:19 # 삭제 답글

    free cell phone number lookup by name You can certainly see your
  • David 2019/10/14 02:41 # 삭제 답글

    Really great info can be found on site.
  • Donald 2019/10/15 07:50 # 삭제 답글

    Valuable information. Lucky me I found your site by accident, and I am shocked why this accident did not happened earlier! I bookmarked it.
  • Michael 2019/10/16 08:30 # 삭제 답글

    I'm searching for websites that may have excellent tips about what's popular and what the most effective makeup products is..
  • James 2019/10/16 16:50 # 삭제 답글

    Neat blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Thanks
  • Robert 2019/10/17 15:54 # 삭제 답글

    I have learn some good stuff here. Certainly price bookmarking for revisiting.
  • Paul 2019/10/17 16:56 # 삭제 답글

    An fascinating dialogue is value comment. I believe that it is best to write more on this matter, it might not be a taboo topic but generally individuals are not sufficient to talk on such topics. To the next. Cheers
  • Donald 2019/10/18 17:58 # 삭제 답글

    It is really a nice and helpful piece of info. Im glad that you shared this helpful information with us. Please keep us up to date like this. Thanks for sharing.
  • Michael 2019/10/19 19:21 # 삭제 답글

    Oh my goodness! an amazing article dude. Thanks Nonetheless I am experiencing issue with ur rss . Dont know why Unable to subscribe to it. Is there anybody getting similar rss drawback? Anybody who is aware of kindly respond. Thnkx
  • Robert 2019/10/20 20:36 # 삭제 답글

    Thank you for some other informative website. Where else may I get that type of info written in such an ideal way? I've a mission that I'm just now operating on, and I've been on the look out for such information.
  • Daniel 2019/10/20 23:12 # 삭제 답글

    Your weblog is 1 of a kind, i really like the way you organize the topics.
  • Michael 2019/10/24 16:54 # 삭제 답글

    I got what you intend, thankyou for putting up.Woh I am lucky to find this website through google. Being intelligent is not a felony, but most societies evaluate it as at least a misdemeanor. by Lazarus Long.
  • Michael 2019/10/26 21:01 # 삭제 답글

    I am really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, its rare to see a great blog like this one nowadays
  • Richard 2019/10/27 07:17 # 삭제 답글

    Totally pent subject matter, appreciate it for selective information.
  • David 2019/10/27 16:05 # 삭제 답글

    I usually do not drop a comment, but I read a few
  • Richard 2019/10/28 21:19 # 삭제 답글

    Regards for helping out, superb information.
  • Daniel 2019/10/29 23:57 # 삭제 답글

    Good writeup, I am normal visitor of one's site, maintain up the excellent operate, and It's going to be a regular visitor for a long time.
  • James 2019/10/31 06:40 # 삭제 답글

    Article Source a viral game app is not
  • James 2019/10/31 15:13 # 삭제 답글

    What's Happening i'm new to this, I stumbled upon this I have discovered It positively helpful and it has aided me out loads. I hope to contribute &amp help other users like its helped me. Good job.
  • Michael 2019/11/03 04:13 # 삭제 답글

    I'm glad that it turned out so effectively and I hope it will continue in the future because it is so worthwhile and meaningful to the community.
  • Robert 2019/11/03 22:38 # 삭제 답글

    Really informative article post.Thanks Again. Awesome.
  • Richard 2019/11/04 15:39 # 삭제 답글

    I'm curious to uncover out what blog system youre employing? Im experiencing some small security troubles with my latest weblog and Id like to locate something more safeguarded. Do you've any recommendations?
  • Robert 2019/11/06 07:30 # 삭제 답글

    Vigamox Without A Script in Columbus
  • James 2019/11/09 12:30 # 삭제 답글

    It's perfect time to make some plans for the long run and it is time to be happy. I have learn this publish and if I may I want to suggest you few attentiongrabbing things or advice. Maybe you could write next articles regarding this article. I desire to read even more things about it!
  • Robert 2019/11/11 19:13 # 삭제 답글

    Neat blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Thanks
  • Donald 2019/11/12 10:49 # 삭제 답글

    I was suggested this blog by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my difficulty. You are wonderful! Thanks!
  • David 2019/11/13 15:10 # 삭제 답글

    Some really nice and useful information on this web site, also I conceive the style and design holds superb features.
  • Charles 2019/11/16 07:07 # 삭제 답글

    I am truly thankful to the holder of this website who has shared this fantastic article at here.
  • Paul 2019/11/16 18:42 # 삭제 답글

    Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way Ill be subscribing to your feeds and even I achievement you access consistently rapidly.
  • Daniel 2019/11/17 12:53 # 삭제 답글

    That is some inspirational stuff. Never knew that opinions could be this varied. Be certain to keep writing.
  • Michael 2019/11/18 12:50 # 삭제 답글

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening to read?
  • Paul 2019/11/19 11:41 # 삭제 답글

    When some one searches for his necessary thing, so heshe desires to be available that in detail, thus that thing is maintained over here.
  • Michael 2019/11/20 05:50 # 삭제 답글

    Nice post. I study one thing more difficult on completely different blogs everyday.
  • David 2019/11/20 11:10 # 삭제 답글

    I truly enjoy looking at on this web site , it contains superb blog posts. Heavierthanair flying machines are impossible. by Lord Kelvin.
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶