You Are Here:

Community: Developer Discussion Boards

#1 Old How to comunicate java (JSR-82) with C (bluez)? - 2006-04-02, 23:13

Join Date: Mar 2006
Posts: 1
ricardo.luiz
Offline
Registered User
Hey everybody.

i tried to connect a aplication write in C with Java (JSR-82 - running in PDA). I can send (with socket) a buffer from java to C application, an works great, but i can't do the inverse. When i tried to do a write in the socket, the java aplication tell that is nothing already to receive!!! (note: the comunnication is already up)
the codding is very simples, i just use the function send(s,......) and after this function i put the write function. But, isn't work.
i don't now what's happen? i have 3 suggestion:
- maybe a socket in a listenmode (listen(s,1) )can't write in the socket
- or the java aplication (on pda) needs a autorization or something like that
- or i need a service record

note: i do'n't wanna use a service record, i just connect form java to a C programm, using the url "btsp://xx:xx:xx:xx:xx:xx:1001; and after the conection is established i try to send and receive packets

Any suggestion??

Sorry about my english, i from brazil
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
J2ME MIDlet is limited, why not Java applications on mobile? chen_lin99 Mobile Java General 11 2007-12-29 02:15
Java FileConnection Optional Package 1.0 (JSR 75) thecrowi Mobile Java General 0 2004-09-24 09:29
How develop Java games on mobile phones? ericzutter Mobile Java General 4 2003-11-21 00:14
Audio Capture in Java larrydb Mobile Java Media (Graphics & Sounds) 4 2003-08-25 16:13
Java Bluetooth APIs JSR 82 webblaz Mobile Java General 1 1970-01-01 02:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia