iREADME.md - rfcommd - RFCOMM daemon to run filters on clients. Err bitreich.org 70 hgit clone git://bitreich.org/rfcommd/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/rfcommd/ URL:git://bitreich.org/rfcommd/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/rfcommd/ bitreich.org 70 1Log /scm/rfcommd/log.gph bitreich.org 70 1Files /scm/rfcommd/files.gph bitreich.org 70 1Refs /scm/rfcommd/refs.gph bitreich.org 70 1Tags /scm/rfcommd/tag bitreich.org 70 1README /scm/rfcommd/file/README.md.gph bitreich.org 70 1LICENSE /scm/rfcommd/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 iREADME.md (1628B) Err bitreich.org 70 i--- Err bitreich.org 70 i 1 # RFCOMMd, a rfcomm daemon. Err bitreich.org 70 i 2 Err bitreich.org 70 i 3 ## RFCOMM Err bitreich.org 70 i 4 Err bitreich.org 70 i 5 RFCOMM is a sub standard of bluetooth, allowing serial communication via Err bitreich.org 70 i 6 some bluetooth channel. Err bitreich.org 70 i 7 Err bitreich.org 70 i 8 ## What is this? Err bitreich.org 70 i 9 Err bitreich.org 70 i 10 The rfcomm daemon will offer some rfcomm service for any device and based Err bitreich.org 70 i 11 on the id of the device, users can run different scripts, daemons or Err bitreich.org 70 i 12 filters for serial link output. Err bitreich.org 70 i 13 Err bitreich.org 70 i 14 This can be used in the most simple case to emulate some bluetooth Err bitreich.org 70 i 15 printer, bluetooth-capable printing clients connect to, where the piped Err bitreich.org 70 i 16 format is simply outputted to lpr(1). See the spirofilter script for how Err bitreich.org 70 i 17 this can be done. Err bitreich.org 70 i 18 Err bitreich.org 70 i 19 ## Installation Err bitreich.org 70 i 20 Err bitreich.org 70 i 21 $ make Err bitreich.org 70 i 22 $ make PREFIX=/usr install Err bitreich.org 70 i 23 # Copy over init scripts from etc/* for your needs. Err bitreich.org 70 i 24 # Copy over sample filters from filters/* for your needs. Err bitreich.org 70 i 25 Err bitreich.org 70 i 26 ## Filters Err bitreich.org 70 i 27 Err bitreich.org 70 i 28 A filter is a simple script, where the first argument is the rfcomm Err bitreich.org 70 i 29 device, like /dev/rfcomm0. The script can then do whatever it likes on Err bitreich.org 70 i 30 this pseudo tty. See the example filters for how to properly configure Err bitreich.org 70 i 31 the device to your needs using stty. Err bitreich.org 70 i 32 Err bitreich.org 70 i 33 Using this logic, you can use whatever daemon allowing serial Err bitreich.org 70 i 34 communication as a filter script. Err bitreich.org 70 i 35 Err bitreich.org 70 i 36 ## Types of Connection Err bitreich.org 70 i 37 Err bitreich.org 70 i 38 Depending on how crappy someone implemented bluetooth, I observed Err bitreich.org 70 i 39 following device behaviours: Err bitreich.org 70 i 40 Err bitreich.org 70 i 41 1.) The device will connect, output content and then disconnect. Err bitreich.org 70 i 42 Err bitreich.org 70 i 43 2.) The device connects and stays connected. Err bitreich.org 70 i 44 Err bitreich.org 70 i 45 Since rfcommd does no child process management, which would be too much Err bitreich.org 70 i 46 for it, you need to consider this for anything restarting rfcommd. Maybe Err bitreich.org 70 i 47 in the future a better logic can be implemented. Err bitreich.org 70 i 48 Err bitreich.org 70 i 49 ## Bugs / Patches Err bitreich.org 70 i 50 Err bitreich.org 70 i 51 Send bugs / patches to: Err bitreich.org 70 i 52 Err bitreich.org 70 i 53 Christoph Lohmann <20h@r-36.net> Err bitreich.org 70 i 54 Err bitreich.org 70 i 55 ## Have fun! Err bitreich.org 70 i 56 Err bitreich.org 70 i 57 Have fun using this! Err bitreich.org 70 i 58 Err bitreich.org 70 .