Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Activer le Contrôle de flux sur Socket Bluetooth RFCOMM (SPP)

Featured Replies

Posté(e)

Bonjour,

J'essaye de mettre en place une liaison Bluetooth entre une tablette Galaxy Tab 8.9 et un équipement bluetooth nécessitant la configuration du contrôle de flux (Vitesse de la liaison série, Bit de parité, Activation du signal TDR/DTR).

J'ai dans un premier essayé avec l'API JAVA

  • createRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"))
  • Permission du manifest android.permission.BLUETOOTH et android.permission.BLUETOOTH_ADMIN

La connexion Bluetooth s'effectue bien (appairage OK), mais je n'ai pas accès aux paramétrages de la liaison.

J'ai donc mis en place une interface JNI qui me permet d'utiliser des méthodes plus bas niveau en C, en m'inspirant de la méthode create_dev du kernel linux (rfcomm.c). Lors de l'appel à la fonction ioctl je reçois un code erreur 1 (errno 1 = Operation not permitted).

Avez vous déjà configuré une liaison série sur bluetooth type RFCOMM ?

Merci d'avance,

Matthieu.

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.