Harry Phillips

Results 32 comments of Harry Phillips

I'm not able to work on this right now, but unless anyone else is working on this, I'm planning to tackle this next.

@padcom I plan to do it, but it's quite complex and I don't understand the STM32's DMA architecture well enough at the moment. I've written an implementation for ESP32 so...

That's strange, in the Kotlin rewrite it looks like this: https://github.com/harry1453/android-bluetooth-serial/blob/a2075b9444dae1ed6b934d23da78262d48bfb994/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothManager.kt#L78 And is quite clearly nullable.

The problem is that I haven't released the current master branch, which contains a fix for this problem: [a method to directly access the OutputStream](https://github.com/harry1453/android-bluetooth-serial/blob/master/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothSerialDevice.kt#L29) so you can handle input...

Can you verify with, say, a Windows PC or other app/device that the data is actually being transmitted?

Could you check what message is being sent? The library [expects](https://github.com/harry1453/android-bluetooth-serial/blob/master/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothSerialDeviceImpl.kt#L45) messages to be delimited by a newline (`\n`) character. If you want a different delimiter, you need to use...

@johnchtsai Please can you do the same as I said above? If you are just transmitting a data stream, you need to use the [`outputStream`](https://github.com/harry1453/android-bluetooth-serial/blob/37b324f0cbe57a67e15dcb1c0cdfcce6b9b9a22b/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothSerialDevice.kt#L29) property to get a raw...

You need to be using the [latest snapshot](https://jitpack.io/#harry1453/android-bluetooth-serial/master-SNAPSHOT) and then use the [`outputStream`](https://github.com/harry1453/android-bluetooth-serial/blob/37b324f0cbe57a67e15dcb1c0cdfcce6b9b9a22b/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothSerialDevice.kt#L29) property to get a raw data stream. Does this answer your question?

@sufiaji Sorry I didn't see this issue got opened! That is very strange and even stranger is that the stacktrace does not run through your app or the library at...

@Anyeos Hi! Sorry for the slow response also. The library only supports regular bluetooth devices, not BLE I'm afraid. They work completely differently and the Serial devices eg. HC-06 are...