Join Today
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1

    Default Connections between sockets and /dev/pts/XX (for rpconnect)

    I have found nice program which can share serial port to socket conections.
    Here it's homepage:
    http://home.hiwaay.net/~taylorc/gps/nmea-server/

    I have compiled it by Montavista, but i cannot attach it to /dev/pts/xx port,
    I think modemeng disturb ...

    Here the file compiled for E680:
    http://s59.yousendit.com/d.php?id=22...G35M4ZE0WVG6C8

    Please help ...

  2. #2

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    @abs_zero
    Thanks for the info although I was unable to download the compiled version from yousendit (i got "file transfer unavailable"), has the file been there a while? (or might there be a typo in the link above?)

    from the homepage my understanding is that this can be used to translate between a socket (which can be accessed by a j2me app) and the "com" port /dev/pts/xx, is this correct? currently when i access /dev/pts/xx for the BT serial connection is simply use fread/fwrite to grab/send a few characters at a time from/to the BT com port.

    i may try to compile it myself to give it a try, although it appears from mudassar's work that i will then run into the problem of getting java to connect to the socket as (like mudassar) i am using t-mobile and cannot make a local java-to-tcp connection because the service provider blocks it even though its local: stupid flanders, i mean, stupid e680i kvm.

  3. #3

    Default Connections between sockets and /dev/pts/XX

    Here compiled NMEAD deamon
    Attached Files Attached Files

  4. #4

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    @abs_zero
    thanks for the compiled file, but the combination of my pre-paid provider and the stupid kvm is blocking my access to even local tcp sockets, so i can't even get data to the nmead application to fully test it.

  5. #5

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    rpconnect
    I need your advice:
    I tried to connect to bluetooth serial port by next way:

    1. I modified root (CG33 image):
    I created symbol link /dev/ttyUSBT -> /dev/pts/0

    2. Flashed my phone by new CG33 file

    3. Copied /usr/SYSjava/kvm to SD card and modified it by HEX editor:
    I changed only /dev/ttyUSB0 to /dev/ttyUSBT
    and USB1 to USBT

    4. I mounted directroy from SD card with kvm to /usr/SYSjava

    5. I made simle java application to check the serial connection via BT SPP profile. (file attached)

    When I run such application it ask me access to COMM device and after it obviously whan it tries to send something to USBT happens something strange:
    1. regular usbnet connection lost
    2. bluetooth connection lost
    3. In order to get usbnet work I have to reinitialize it /proc/usbd-switch

    Please help me.
    Attached Files Attached Files

  6. #6
    Join Date
    May 2005
    Location
    Germany, Hannover
    Posts
    289

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    that is very cool

    hope you get this working

  7. #7

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    your approach sounds quite interesting, i hadn't thought of bin hacking the phone's kvm

    question: had you already made the BT SPP connection to the phone before you started the app? also, do you have a way of automatically relinking /dev/ttyUSBT to whatever /dev/pts/X gets used by the modemeng app when a BT SPP connection is made?

    i'm wondering if by default the kvm is expecting to go through the USB port for all com connections (you already know that USB1 is the only "com" port available to the kvm) and is therefore manipulating the USB interface causing you to loose the USBNET connection. if this is the case then i am not sure how you will get around this problem.

    personally i've just about had it with the phone's kvm, it provides a nice GUI but for me its just too limited for arbitrary applications, that's why i opted for using rms records (see cytux's cy4th application) to communicate w/ the OS and let the OS work w/ the com port. it works and never asks for user permissions for access.

    I have even thought of trying to build an alternative KVM where we could include whatever API's we want, but this seemed like a hairy problem and seems best left for an overall OE-style build.

    sorry i havn't been of more help on this, i'm not too experienced with it just yet. if you do have any questions regardnig the java-to-OS-to-BT com port connection though i'd be happy to share all i know, it may not be the cleanest or most elegant of solutions, but it does work. best of luck!

  8. #8

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    rpconnect is absolutely right.. !!
    try not to use sockets because i recently discovered that that A780 kvm doesnt allow local connection to sockets... Not at all !!! i received this information from the motocoder technical staff after quarreling with them for a month...
    so this is why i also turned towards cytux method of communicating through RMS... let the power of Linux do all the stuff for u.. just send some command to Linux side, recognize the command and do ur stuff from there...


    -Mudassar

  9. #9
    Join Date
    May 2005
    Location
    Germany, Hannover
    Posts
    289

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    but how could we work with streams from java? eg, for streaming music or something like that. as i understand cytux demon, its only possible to send and receive commands or you have everytime to close your stream, and i think the size must'nt to big.

    i understand we can make rewrite the demon to handle all the different jar-apps, but btw the the vm allows only one running java process, so we need to change there someting too.

    so i would send my command from jar-app to demon, this will open a connection (or perhaps better kepp it alive) to my host pc, where the host-demon shares the commands to the opposites of my jar-apps.

    rpconnect you did some development for this already?

  10. #10

    Default Re: Connections between sockets and /dev/pts/XX (for rpconne

    no i haven't, sorry. what kind of streaming did you have in mind? From the developer guide off motocoder it looks like the kvm is capable of handling audio streaming, and for character based stuff (e.g. keyboard input) it should be possible (although maybe not efficient) to run a demon at a fast enough rate to get single characters in and out via rms/jar files.

    also, from the description of loadResourceAsStream (see http://mindprod.com/jgloss/getresourceasstream.html for exmple) it almost appears that we can can use arbitrary files (not in the jar?) in which case is it possible to create a link from MIDlet00XXX/Files/?? to another device?

    @cytux: do you have any experience w/ this or does the resource have to be put into the jar file?


 
+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 10-07-2009, 03:00 AM
  2. Help: Need vibrate.pts file from A1200
    By lazyivan in forum A1200 General Chat
    Replies: 14
    Last Post: 10-17-2007, 05:27 PM
  3. Need ringer alert ".pts" files! Please help.
    By mucknfat in forum A1200 General Chat
    Replies: 1
    Last Post: 10-26-2006, 09:57 AM
  4. What's new in dev?
    By leprechaun in forum Development
    Replies: 4
    Last Post: 01-23-2006, 01:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1