コンテンツにスキップ

「ObexFTP」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
新規作成
 
AshMyzk (トーク | 投稿記録)
翻訳
 
1行目: 1行目:
[[Category:Bluetooth]]
[[Category:Bluetooth]]
[[en:ObexFTP]]
[http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp ObexFTP] implements the [[Wikipedia:OBEX|OBEX]] protocol, used to transfer files. OBEX was adopted by [[Bluetooth]] and [[Android]] supports it since version 2.1.
[http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp ObexFTP] は [[Wikipedia:OBEX|OBEX]] プロトコルの実装です。ファイルの転送に用いられます。OBEX は [[Bluetooth]] により採用され、[[Android]] ではバージョン 2.1 以降からサポートされています。


== Installation ==
== インストール ==


{{AUR|obexftp}} パッケージを[[インストール]]してください。
[[Install]] the {{AUR|obexftp}} package.


For a Tcl/Tk front-end [[install]] {{AUR|obextool}}.
Tcl/Tk フロントエンドは {{AUR|obextool}} を[[インストール]]してください。


For a [[GVFS]] client [[install]] {{AUR|gnome-vfs-obexftp}}{{Broken package link|package not found}}.
[[GVFS]] クライアントは {{AUR|gnome-vfs-obexftp}} を[[インストール]]してください。


== Usage ==
== 使用法 ==


=== Obex Object Push ===
=== Obex Object Push ===


ファイルを送るには、OBEX Push サービスのチャネルを見つけてください。
To send a file, find out the channel of the OBEX Push service:


$ sdptool search --bdaddr ''MAC_address'' OPUSH
$ sdptool search --bdaddr ''MAC_address'' OPUSH


Then send the file to that channel using the following command from [http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExamples/#Obex-PUSH-over-Bluetooth]:
そして、次のコマンドを利用してファイルをそのチャネルに対して送ってください [http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExamples/#Obex-PUSH-over-Bluetooth]:


$ obexftp --nopath --noconn --uuid none --bluetooth ''MAC_address'' --channel ''channel'' --put ''file''
$ obexftp --nopath --noconn --uuid none --bluetooth ''MAC_address'' --channel ''channel'' --put ''file''


Alternatively you could use {{AUR|ussp-push}}. To receive OBEX Pushes, there is [https://gitlab.com/obexpushd/mainline ObexPushD], which however is no longer packaged for Arch.
あるいは、{{AUR|ussp-push}} を利用することもできます。OBEX Push を受け取るための [https://gitlab.com/obexpushd/mainline ObexPushD] がありますが、Arch 向けにはもはやパッケージングされていません。


=== ObexFTP ===
=== ObexFTP ===


デバイスが Obex FTP サービスをサポートしているが、デバイスをマウントしたくない場合、obexftp コマンドを使ってデバイスへ/からファイルを転送できます。
If your device supports the Obex FTP service but you do not wish to mount the device you can transfer files to and from the device using the obexftp command.


ファイルをデバイスに送るには以下のコマンドを実行してください:
To send a file to a device run the command:


$ obexftp -b ''MAC_address'' -p /path/to/file
$ obexftp -b ''MAC_address'' -p /path/to/file


ファイルをデバイスから取得するには以下のコマンドを実行してください:
To retrieve a file from a device run the command:


$ obexftp -b ''MAC_address'' -g filename
$ obexftp -b ''MAC_address'' -g filename


{{Note|受け取るファイルがデバイスの ''exchange folder'' 内にあることを確認してください。ファイルが exchange folder 内のサブフォルダにある場合、コマンドに正しいパスを渡してください。}}
{{Note|Ensure that the file you are retrieving is in the device's ''exchange folder''. If the file is in a subfolder of the exchange folder then provide the correct path in the command.}}


=== ObexFS ===
=== ObexFS ===


KDE や Gnome の Bluetooth パッケージを使う以外の方法として、他のファイルシステムとして扱うことのできる電話をマウントできる ObexFS を使うというものがあります。
Another option, rather than using KDE or Gnome Bluetooth packages, is ObexFS which allows for the mounting of phones which are treated like any other filesystem.


{{Note|ObexFS を使うには、ObexFTP サービスを提供するデバイスが必要です。}}
{{Note|To use ObexFS, one needs a device that provides an ObexFTP service.}}


以下のコマンドで、サポートされる電話をマウントしてください:
Mount supported phones by running:


$ obexfs -b ''MAC_address'' ''mountpoint''
$ obexfs -b ''MAC_address'' ''mountpoint''


使い終わったら、以下のコマンドでデバイスをアンマウントしてください:
Once you have finished, to unmount the device use the command:


$ fusermount -u ''mountpoint''
$ fusermount -u ''mountpoint''


For more mounting options see http://dev.zuckschwerdt.org/openobex/wiki/ObexFs
他のマウントオプションは http://dev.zuckschwerdt.org/openobex/wiki/ObexFs を見てください。


{{Note|マウント中の Bluetooth デバイスが''読み取り専用''でマウントされて'''いない'''ことを確認してください。これはデバイスの設定からできるはずです。デバイスが''読み取り専用''でマウントされている場合、デバイスにファイルを転送しようとした際にパーミッションエラーが発生するでしょう。}}
{{Note|Ensure that the bluetooth device you are mounting is '''not''' set to mount ''read-only''. You should be able to do this from the device's settings. If the device is mounted ''read-only'' you may encounter a permissions error when trying to transfer files to the device.}}

2022年6月21日 (火) 09:09時点における最新版

ObexFTPOBEX プロトコルの実装です。ファイルの転送に用いられます。OBEX は Bluetooth により採用され、Android ではバージョン 2.1 以降からサポートされています。

インストール

obexftpAUR パッケージをインストールしてください。

Tcl/Tk フロントエンドは obextoolAURインストールしてください。

GVFS クライアントは gnome-vfs-obexftpAURインストールしてください。

使用法

Obex Object Push

ファイルを送るには、OBEX Push サービスのチャネルを見つけてください。

$ sdptool search --bdaddr MAC_address OPUSH

そして、次のコマンドを利用してファイルをそのチャネルに対して送ってください [1]:

$ obexftp --nopath --noconn --uuid none --bluetooth MAC_address --channel channel --put file

あるいは、ussp-pushAUR を利用することもできます。OBEX Push を受け取るための ObexPushD がありますが、Arch 向けにはもはやパッケージングされていません。

ObexFTP

デバイスが Obex FTP サービスをサポートしているが、デバイスをマウントしたくない場合、obexftp コマンドを使ってデバイスへ/からファイルを転送できます。

ファイルをデバイスに送るには以下のコマンドを実行してください:

$ obexftp -b MAC_address -p /path/to/file

ファイルをデバイスから取得するには以下のコマンドを実行してください:

$ obexftp -b MAC_address -g filename
ノート 受け取るファイルがデバイスの exchange folder 内にあることを確認してください。ファイルが exchange folder 内のサブフォルダにある場合、コマンドに正しいパスを渡してください。

ObexFS

KDE や Gnome の Bluetooth パッケージを使う以外の方法として、他のファイルシステムとして扱うことのできる電話をマウントできる ObexFS を使うというものがあります。

ノート ObexFS を使うには、ObexFTP サービスを提供するデバイスが必要です。

以下のコマンドで、サポートされる電話をマウントしてください:

$ obexfs -b MAC_address mountpoint

使い終わったら、以下のコマンドでデバイスをアンマウントしてください:

$ fusermount -u mountpoint

他のマウントオプションは http://dev.zuckschwerdt.org/openobex/wiki/ObexFs を見てください。

ノート マウント中の Bluetooth デバイスが読み取り専用でマウントされていないことを確認してください。これはデバイスの設定からできるはずです。デバイスが読み取り専用でマウントされている場合、デバイスにファイルを転送しようとした際にパーミッションエラーが発生するでしょう。