The JSR082 IrDA Obex Demo readme
Content:
1. Demo organization
2. Demo scenarios
2.1 The base scenario
2.2 Choose from several obex devices
2.3 Device discovery timeout
2.4 Maximum packet length
==========================================================================
1. Demo organization
Obex Demo is placed in package example.obex.demo and contains 5 classes:
ObexDemoMIDlet - the main class which creates a choice list
to run client or server part of the Demo;
ObexImageSender - it's an OBEX client, which sends the selected
image to the OBEX server;
ObexImageReceiver - it's an OBEX server, which receives the image
from the OBEX client;
GUIImageSender & GUIImageReceiver - the GUI parts of
ObexImageSender & ObexImageReceiver (may be missed on early access
version of the demo).
==========================================================================
2. Demo scenarios
There are 4 scenarios of demo given below:
2.1 The base scenario
- Run two emulators and launch ObexDemo in each;
- In the first emulator - select a ImageReceiver;
- In the second emulator - select a ImageSender;
- In new list which you can see on the second emulator
screen - select any picture name;
- In the first emulator - answer "yes" to accept
and download incoming image;
- After you looked on downloaded image, press "back"
to exit to the main menu of the demo.
2.2 Choose from several obex devices
- Run tree emulators and launch ObexDemo in each
- In the second and third emulators - select a ImageSender,
choose an image to send and initiate the sending
- No later then in 5 seconds, in the first emulator -
select a ImageReceiver;
- In the first emulator - answer "yes" to accept
and download incoming image;
- You'll see the server resumes a work of those
client (second or third emulator) which was connecting
first (before another client), and there is no way
for server to understand which client connects him
(for such simple applications)
2.3 Device discovery timeout
- Run two emulators and launch ObexDemo in each;
- In the first emulator - select a ImageSender,
choose an image and start a sending. You'll
see the "Connecting..." title above the progress.
After some time (10 seconds by default) you'll
see "Receiver isn't ready to download image" response.
- In the first emulator start a sending again.
- Very fast in the second emulator - select a ImageReceiver -
you'll see the first emulator has discovered the second one
and proceed downloading.
- change the "Device discovery timeout" in ktoolbar's Preferences
window: Edit->Preferences->IrDA OBEX->Discovery Timeout
to see it does affect the time the device tries to discover
another devices
2.4 Maximum packet length
- process the demo scenario 2.1 (base scenario) - use
the cdcrus.png image (the largest one in the list) -
remember the time the image data was uploaded,
exit these emulator
- in the IrDA OBEX tab in Preferences window reduce the
Maximum packet length value to 128 bytes (for example);
- process the demo scenario 2.1 with the largest image -
you'll see the image uploading time has been increased;
- exit one of emulators, keeps another one alive,
set Maximum packet length value to 65536 bytes (64Kb)
and run a new emulator, then process the demo scenario 2.1 -
you'll see the download speed is not changed - the
IrDA devices negotiates about the packet size to use
while connecting, so the smallest packet size has an effect;
==========================================================================
Wireless SDK team
Wed Jan 21 17:04:33 2004
lanya.rar_lanya
版权申诉
163 浏览量
2022-09-24
13:52:29
上传
评论
收藏 164KB RAR 举报
Kinonoyomeo
- 粉丝: 76
- 资源: 1万+
最新资源
- 关于数据分析工具的问题 (Excel、PowerBI-Tableau、R-Python)-教程案例分享.zip
- jqueryUI管理后台+WeiXinApp微信小程序+uni例子内容 参数例子,学习用
- 基于聚类分析分批训练的BP神经网络回归分析
- 计算机大类学生课程实验心得、案例-基于Python 的图像处理实验.zip
- CocosDashboard-v2.1.3-win-042311.exe
- vue3-admin-master-后台管理平台模板.zip
- 基于yolov5和deepsort算法的车辆检测项目源码+数据集(高分项目).zip
- 使用Python的requests库和BeautifulSoup库进行网页爬取的示例案例
- 蓝色个人主页接单HTML源码.zip
- 基于YOLOv5+Deepsort实现车辆行人追踪和计数(完整源码+说明文档+数据).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈