Hi Chris,

Yes, we are running the barry on ARM. We are not controlling the barry from 
blackberry and we are using the raw channel mode for connection.
 
The process we are following is as below.
1. When the ARM device boots, the app keeps on polling for the connection with 
the blackberry
2. The moment the app on the blackberry runs, it opens a stream connection for 
the usb port and channel set as JDE_USBCLIENT
3. As soon as the sream is openend on the blackberry, barry establishes the 
connection 
4. Data exchange takes place
5. Based on the user selection on the blackberry app, blackberry sends commands 
to ARM device to perform certain functions and give back the response.

The problem is when barry establishes connection with the blackberry, it is 
moved to receive mode to get the commands from 
Blackberry, but if the user doesn't select anything on blackberry application 
for 30 seconds, the barry gets timed out and connection gets closed and again 
starts waiting for usb connection. At this point the stream connection on the 
blackberry app should be restared for the barry to connect to blackberry.



Sent from BlackBerry® on Airtel

-----Original Message-----
From: Chris Frey <cdf...@foursquare.net>
Date: Thu, 7 Jul 2011 22:09:33 
To: <naveen_...@yahoo.co.in>; Barry project development 
discussion<barry-devel@lists.sourceforge.net>
Subject: Re: How to Change Default Timeout

Hi Naveen,

I'm a bit unclear as to the conections involved.  I'm assuming you're
running Barry on the ARM, but how are you controlling it from the
Blackberry?

What kinds of connections are you using?  Are you using the raw channel
mode?

Thanks,
- Chris


On Thu, Jul 07, 2011 at 08:22:17PM +0000, naveen_...@yahoo.co.in wrote:
> Thank you Chris,
> 
> The periodic diconnection due to timeout is causing a lot of problem.
> 
> Can you please suggest on how we can over come this issue. We want the 
> connaction to be some thing like, when I connect my blackberry to desktop it 
> does not get disconnected, the connection remains untill we close it manually.
> 
> In our project we are actually controlling an ARM based device through 
> blackberry, now what's happening is evry 30 seconds we need to re-establish 
> the connection manually, because blackberry app doesn't get notified when the 
> ARM device times out.
> 
> It will be great help if you can suggest an workaround for this.
> 
> Thanks and Regards
> Naveen
> Sent from BlackBerry? on Airtel
> 
> -----Original Message-----
> From: Chris Frey <cdf...@foursquare.net>
> Date: Thu, 7 Jul 2011 15:25:55 
> To: Barry project development discussion<barry-devel@lists.sourceforge.net>
> Reply-To: Barry project development discussion
>       <barry-devel@lists.sourceforge.net>
> Subject: Re: [Barry-devel] How to Change Default Timeout
> 
> On Thu, Jul 07, 2011 at 10:00:23PM +0530, Rajendra prasad wrote:
> > But i am facing one problem with timeout.
> > some times BB send commands after 30 seconds, this case my device giving
> > error as *Socket receive error: likely timeout.*
> > In library you defined receiver default timeout as 30 seconds, but i want to
> > change that timeout to around 15min.
> > so to achieve this, where can i edit the the timeout value in Barry source
> > tree?
> 
> Hi Rajendra,
> 
> I'm not sure if 15 minutes is feasible, but the default timeout is
> specified in src/usbwrap.h in the following define:
> 
>       #define USBWRAP_DEFAULT_TIMEOUT 30000
> 
> The value is in milliseconds.
> 
> - Chris
> 
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to