Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

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.

Featured Replies

Geschrieben

Hallo zusammen,

ich versuche die Baudrate und die Parität für das RS232 Bricklet zu ändern.

Leider bleibt diese unverändert auf RS232_BAUDRATE_115200 und RS232_PARITY_NONE wie ich das Bricklet mal in Betrieb genommen habe, kann das sein?

wenn sich das Bricklet meldet wird es wie folgt initialisiert:

rs232_v2_create(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice), psTemp_Device->sDevice_UID.toLocal8Bit().data(), &ipcon);     
            

 

rs232_set_configuration(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice),
                                    RS232_BAUDRATE_9600,//RS232_BAUDRATE_115200,
                                    RS232_PARITY_EVEN,//RS232_PARITY_NONE,
                                    RS232_STOPBITS_1,
                                    RS232_WORDLENGTH_8,
                                    RS232_HARDWARE_FLOWCONTROL_OFF,
                                    RS232_SOFTWARE_FLOWCONTROL_OFF);
 
rs232_v2_register_callback(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice),
                                       RS232_V2_CALLBACK_READ,
                                       (void (*)(void))cb_readRS232_V2_static,
                                       psTemp_Device);
rs232_v2_enable_read_callback(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice));

 

Gibt es einen Ablauf wie die Baudrate/Parität usw in Betrieb geändert werden kann?

Da ich verschiedene Baudraten automatisiert durch probieren müsste um das Gerät zu erkennen.

Danke und viele Grüße

 

Geschrieben

Moin,

1 hour ago, PaulPaulaner said:

rs232_set_configuration(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice),

Das ist die Funktion des RS232 (1.0) Bricklets, du benutzt aber sonst immer die vom RS232 2.0.

Folgendes sollte funktionieren:

rs232_v2_set_configuration(reinterpret_cast<RS232V2 *>(psTemp_Device->vDevice),
                           115200,
                           RS232_V2_PARITY_EVEN,
                           RS232_V2_STOPBITS_1,
                           RS232_V2_WORDLENGTH_8,
                           RS232_V2_FLOWCONTROL_OFF);

 

Geschrieben
  • Autor

Danke für die schnelle Antwort !!!

So einfach kann es sein - Danke funktioniert jetzt !

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

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.