Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi guys,

I'm currently trying to perform a simplex connection with my application. I have my application on the computer and also on the cell phone (upload the app using cable). And I would like to establish a connection between the computer and the cell phone so that I can test the performance of my app.

The problem I encounter is that how can I establish such a connection between the computer and the cell phone over Verizon Network. While there's an IP for my computer, I'm not sure if the cell phone would have an IP or gateway from internet as well so that I can using the Verizon brew server as a router to stream data from my computer to the cell phone.

Since this is only for testing, I don't want to put my app onto Verizon brew server yet and download the data from the server to my cell phone. Does anyone of you know if there are ways I can establish direct connection between my computer and cell phone?

I've tried emailing the Verizon developer group several times but still haven't heard back from them. So if anyone of you have info related to this problem, that would be great!!

Thanks very much!
Karen :o

don't know whether the following is related with your question.
http://www.qualcomm.com/brew/developer/support/faq/techfaq7.html#T7K
Quote:
7k. Q: Is it possible to transfer data between two phones?
A: Peer to peer connections between two phones have been found to be unreliable, failing when the phones are on the same subnet. It is best therefore to use a proxy server, transferring data between the phones using the server as a go between.
7l. Q: Can a BREW-enabled device be used as a server?
A: In addition to the obvious memory and performance limitations, it is not possible to listen on a socket connection when a BREW application is running on a phone. These factors make implementing a server on BREW difficult at best.

don't know whether the following is related with your question.
http://www.qualcomm.com/brew/developer/support/faq/techfaq7.html#T7K
Quote:
7k. Q: Is it possible to transfer data between two phones?
A: Peer to peer connections between two phones have been found to be unreliable, failing when the phones are on the same subnet. It is best therefore to use a proxy server, transferring data between the phones using the server as a go between.
7l. Q: Can a BREW-enabled device be used as a server?
A: In addition to the obvious memory and performance limitations, it is not possible to listen on a socket connection when a BREW application is running on a phone. These factors make implementing a server on BREW difficult at best.

I'm not sure if this answers your question, but I (plan) on using an application directed SMS message to notify the BREW app that it should initiate an HTTP session with my server.
Good luck

I'm not sure if this answers your question, but I (plan) on using an application directed SMS message to notify the BREW app that it should initiate an HTTP session with my server.
Good luck

Thanks for your comment!
However, did any of you use Verizon Wireless as the network to stream data?
Karen :o

Thanks for your comment!
However, did any of you use Verizon Wireless as the network to stream data?
Karen :o

Hi Karen,
I dont think u need to know the gateway or the IP of ur phone. U could open a socket to the server, with the serverIP and PORT.
Cheers,
Shanker GS.

Hi Karen,
I dont think u need to know the gateway or the IP of ur phone. U could open a socket to the server, with the serverIP and PORT.
Cheers,
Shanker GS.

Depends on what you mean by "streaming data"
If all you want to do is exchange data or images between your cellphone and your server, yes its possible. I have done it over verizon.
if you want to do streaming graphics... you might want wait couple years. The network can't support that kind of datarate at this time. At least not on Verizon. They do have something called the expressNet which a speed north of 100 kpbs. But, I dont think its available for the brew platform.
regards,
Vasanth

Depends on what you mean by "streaming data"
If all you want to do is exchange data or images between your cellphone and your server, yes its possible. I have done it over verizon.
if you want to do streaming graphics... you might want wait couple years. The network can't support that kind of datarate at this time. At least not on Verizon. They do have something called the expressNet which a speed north of 100 kpbs. But, I dont think its available for the brew platform.
regards,
Vasanth

Yes, we are planning to stream video data through the network, so you think the current network would not allow us to do such transmittion?
Karen :(

Yes, we are planning to stream video data through the network, so you think the current network would not allow us to do such transmittion?
Karen :(

probably not "impossible". use your brew phone to download a free demo of "logitech mobile video" in the "get pix" category, see how they deal with live video. with greyscale image and 2 fps performance, it is not that good. but should be ok for such a low end device.

probably not "impossible". use your brew phone to download a free demo of "logitech mobile video" in the "get pix" category, see how they deal with live video. with greyscale image and 2 fps performance, it is not that good. but should be ok for such a low end device.

Hi,
I dont think there is any possibility other than deploying your server on to the Verizon Brew server. If there is any alternative please let me know as we are looking for that sort of setup.
Like connectiong to the server through the serial ports.
Cheers,
Shanker GS.

Hi,
I dont think there is any possibility other than deploying your server on to the Verizon Brew server. If there is any alternative please let me know as we are looking for that sort of setup.
Like connectiong to the server through the serial ports.
Cheers,
Shanker GS.

Connecting to brew server through serial port? Hmm... I am not sure what you are talking about. Problem is not server between server communication.
Your bottleneck is communication between the handset and the cell tower.
Just my 2 cents
-Vasanth

Connecting to brew server through serial port? Hmm... I am not sure what you are talking about. Problem is not server between server communication.
Your bottleneck is communication between the handset and the cell tower.
Just my 2 cents
-Vasanth

Dear all,
I understand that you can direct traffic from phone to PC by specifying the PC's IP address and port. But how about in the other direction, from PC back to phone? I tried using ISOCKET_GetPeerName() on the emulators to obtain the connection information to the phone, but got an error code indicating that the operation is not supported.
Any idea or workardound will be greatly appreciated.
Thanks,
Wallace

Dear all,
I understand that you can direct traffic from phone to PC by specifying the PC's IP address and port. But how about in the other direction, from PC back to phone? I tried using ISOCKET_GetPeerName() on the emulators to obtain the connection information to the phone, but got an error code indicating that the operation is not supported.
Any idea or workardound will be greatly appreciated.
Thanks,
Wallace

Communicating between a device and a server is not very complex. You can refer to the roadwarrior and webber examples in the SDK. You could also use Isocket to send over TCP or UDP. So long as your app on the device is initiating the connection, you don’t need your device IP. Just connect to your server IP on the required port and let your server handle the response. You can refer to Client/Server books for more information.
The quality of the image and the FPS will depend on the speed at which you can receive the data, as well as the refresh rate of the device you are targeting. 1x networks will be faster, but IS95 has already demonstrated useful applications of streaming video over brew. (The Carrier has less of an impact than the above mentioned factors)

Communicating between a device and a server is not very complex. You can refer to the roadwarrior and webber examples in the SDK. You could also use Isocket to send over TCP or UDP. So long as your app on the device is initiating the connection, you don’t need your device IP. Just connect to your server IP on the required port and let your server handle the response. You can refer to Client/Server books for more information.
The quality of the image and the FPS will depend on the speed at which you can receive the data, as well as the refresh rate of the device you are targeting. 1x networks will be faster, but IS95 has already demonstrated useful applications of streaming video over brew. (The Carrier has less of an impact than the above mentioned factors)

to wallacecheung:
First of all I'm new to brew and I've been looking through the API but am not thoroughly familiar with it yet so excuse any ignorance on my part.
I was wondering where I could find more information regarding computer-to-phone communication via USB. (threads or search keywords would help).
Also, is brew the OS for phones or just some sort of AppLoader + execution?
TIA

to wallacecheung:
First of all I'm new to brew and I've been looking through the API but am not thoroughly familiar with it yet so excuse any ignorance on my part.
I was wondering where I could find more information regarding computer-to-phone communication via USB. (threads or search keywords would help).
Also, is brew the OS for phones or just some sort of AppLoader + execution?
TIA