Page 1 of 2

BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Fri Nov 29, 2019 3:50 am
by Csaba Nagy
Since I’ve learned about the Bluetooth functionality of the Blackmagic Cameras earlier this year, I’ve sought to bring functional and interesting hardware/software implementations to these great cameras.

To help aid in the pursuit, I’ve been developing an easy-to-use Arduino library, to enable anyone to build their own Bluetooth controllers. From experienced programmers to newcomers, should be very flexible to use.

The library is still in development and will soon be available and I highly encourage people to extend/improve this library as they see fit when it becomes available. ( likely could use some under the hood improvements as It’s my first time developing C++ Library )

Here’s an early look at a really simple piece of demo code that can create a remote trigger with live timecode ( using a $15 development device ) and an example of an integration with a Samsung Gear VR Remote to control the camera. ( really cool possibilities with this as it has lots of buttons, a touchpad, gyroscope/accelerometer and is widely available and cost effective.)

Still working on adding an example or two, would love to hear what kind of examples you’d like to see included with the library and I’ll see If I can make those happen.


Re: BlackMagic Bluetooth Arduino Library | Early look

PostPosted: Sun Dec 01, 2019 11:30 pm
by Brendan Dower
Excellent Job Csaba!
We always love to see examples of what developers create with our products!

Re: BlackMagic Bluetooth Arduino Library | Early look

PostPosted: Mon Dec 02, 2019 4:39 pm
by Chris Maier
Hi Csaba,

great job indeed!
I am wondering why everyone is adding additional hardware to their circuits (e.g. M5StickC, WifiKit 32 or anything based on the ESP32 chip) to control the BMPCC.
Samsung VR remote or Tilta Nucleous Nano in another case.

I managed (with a ton of help!) to successfully add a cheap potentiometer to the board to control the aperture via Bluetooth.
Unfortunately I was still to busy to write better code to "debounce" the reading of the potentiometer.
I will be a long cold winter...
(The original controlling code was not written by myself! I am not sure if the kind developer is part of this community.)

I am really looking forward to see your library!
It would bet great to change the aperture via a rotary encoder instead of a potentiometer.
This might be more reliable.

I have just received my M5StickC today...

Thank you,
Chris

Re: BlackMagic Bluetooth Arduino Library | Early look

PostPosted: Sun Dec 15, 2019 6:54 am
by PauliJ
Hello Csaba!

I'm really excited about this! I tried to do a simple ble controller for pocket 4k a year ago but got stuck in the bonding problems with nFR52 Arduino board.
So I'd love to see examples for bonding and sending simple commands for REC/STOP and manual focus. That would be great!
If you need a beta tester, I'm happy to help :)
Thanks for the awesome work in advance!

Re: BlackMagic Bluetooth Arduino Library | Early look

PostPosted: Thu Jan 09, 2020 12:53 pm
by insorior
Csaba Nagy wrote:Since I’ve learned about the Bluetooth functionality of the Blackmagic Cameras earlier this year, I’ve sought to bring functional and interesting hardware/software implementations to these great cameras.

To help aid in the pursuit, I’ve been developing an easy-to-use Arduino library, to enable anyone to build their own Bluetooth controllers. From experienced programmers to newcomers, should be very flexible to use.

The library is still in development and will soon be available and I highly encourage people to extend/improve this library as they see fit when it becomes available. ( likely could use some under the hood improvements as It’s my first time developing C++ Library )

Here’s an early look at a really simple piece of demo code that can create a remote trigger with live timecode ( using a $15 development device ) and an example of an integration with a Samsung Gear VR Remote to control the camera. ( really cool possibilities with this as it has lots of buttons, a touchpad, gyroscope/accelerometer and is widely available and cost effective.)

Still working on adding an example or two, would love to hear what kind of examples you’d like to see included with the library and I’ll see If I can make those happen.


Re: BlackMagic Bluetooth Arduino Library | Early look

PostPosted: Wed Jan 22, 2020 1:10 am
by Csaba Nagy
Pleased to announce to release of the BlueMagic32 Library! BlueMagic32 is an Arduino Library for controlling Blackmagic Cameras over Bluetooth Low Energy using an ESP32 device.

Link to library: https://github.com/schoolpost/BlueMagic32

Create your own Bluetooth control hardware that can control parameters such as:
-Recording
-Focus
-Frame Rate
-ISO
-Shutter
-Whitebalance/Tint

Use the provided examples and create a basic remote trigger in under 10 minutes! Watch the video guide and see for yourself.



As with any version 1.0; bugs and other quirks to be expected also some features are not yet fully implemented so be patient as they will be added soon. Please track bugs/problems with the github issues tool.

Can’t wait to see what everyone makes! ;)

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed Jan 22, 2020 10:15 am
by Xtreemtec
Great Work !! :D

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed Jan 22, 2020 2:57 pm
by Chris Maier
Thank you very much for sharing this with the community!
I will definitely try and compare this with my previous solution.

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sat Jan 25, 2020 8:29 pm
by kalinska
Very good work. Correct operation with the examples provided and ease of implementation for a low cost.

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Mon Feb 03, 2020 2:54 am
by narimangafurov
Thank you friend! great work...already ordered M5StickC ESP32 and can't wait to try...

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun Feb 16, 2020 6:15 pm
by Chris Maier
Hi all,

just a quick hit, which would have saved me two hours...

If you follow all the instructions on OSX Catalina you will probably run into this error while uploading a Sketch to the M5StickC board.

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I found the solution with a lot of searching the web (on a different computer, so I can not post the link).

The solution was fairly simple:
Just connect the port "G0" with ground "GND" using e.g. a paper clip.


BTW: Has anyone enhanced the capabilities of the sample code to controlling the aperture using rotary encoder?
This will be my next step.

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Mon Mar 09, 2020 7:22 pm
by narimangafurov
Chris Maier wrote:Hi all,

just a quick hit, which would have saved me two hours...

If you follow all the instructions on OSX Catalina you will probably run into this error while uploading a Sketch to the M5StickC board.

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I found the solution with a lot of searching the web (on a different computer, so I can not post the link).

The solution was fairly simple:
Just connect the port "G0" with ground "GND" using e.g. a paper clip.


BTW: Has anyone enhanced the capabilities of the sample code to controlling the aperture using rotary encoder?
This will be my next step.

Chris


Could you briefly describe the procedure for setting up the M5StickC? I get an error ((
Arduino: 1.8.12 (Mac OS X), Board: "ESP32 Pico Kit, Default, 921600, None"

Sketch uses 967843 bytes (73%) of program storage space. Maximum is 1310720 bytes.
Global variables use 36064 bytes (11%) of dynamic memory, leaving 291616 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port /dev/cu.usbserial-79525604B4
Connecting......
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
MAC: d8:a0:1d:54:fe:00
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...

A fatal error occurred: Timed out waiting for packet header
A fatal error occurred: Timed out waiting for packet header

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Mar 10, 2020 5:04 pm
by Chris Maier
Hi,

it seem that you are trying to flash the wrong board.
My Arduino IDE says "Board: M5Stick-C".

Try to follow the instructions step by step:
https://github.com/schoolpost/BlueMagic32

On OSX 10.14 it worked instantly (while the M5StickC was running).
For OSX 10.15 feel free to try my advice above.

I used this sketch:
https://github.com/schoolpost/BlueMagic ... a_Settings

Good luck - or send me a message.

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Mar 10, 2020 6:05 pm
by narimangafurov
Chris Maier wrote:Hi,

it seem that you are trying to flash the wrong board.
My Arduino IDE says "Board: M5Stick-C".

Try to follow the instructions step by step:
https://github.com/schoolpost/BlueMagic32

On OSX 10.14 it worked instantly (while the M5StickC was running).
For OSX 10.15 feel free to try my advice above.

I used this sketch:
https://github.com/schoolpost/BlueMagic ... a_Settings

Good luck - or send me a message.

Chris

everything worked out! thanks a lot!

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sat Mar 21, 2020 2:34 am
by Csaba Nagy
Here's an example of a Long Range Remote Trigger you can build using this library:


Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed May 27, 2020 6:30 am
by Max Roesch
Hello,

has anybody tried to connect it to BMPCC6K? I tried it without any succsess :(

Max

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed May 27, 2020 3:42 pm
by Chris Maier
Max Roesch wrote:Hello,

has anybody tried to connect it to BMPCC6K? I tried it without any succsess :(

Max
Hi Max,

yes, I build a prototype remote aperture controller for a BMPCC 6K.

Meanwhile I am working on a Multicam Remote Aperture Controller using BLE, Wifi and LoRa to control cameras of multiple manufacturers like Blackmagic, Sony, Panasonic and ZCam.

M5_tiny_Remote.jpg
the tiny one
M5_tiny_Remote.jpg (355.26 KiB) Viewed 107806 times

M5_BMPCC_6K_Controller.jpg
controller with external dial
M5_BMPCC_6K_Controller.jpg (387.52 KiB) Viewed 107806 times

LoRa_Modules.jpg
latest Long Range version - successfully tested up to 1100m
LoRa_Modules.jpg (302.61 KiB) Viewed 107806 times


Good luck!
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed May 27, 2020 5:58 pm
by Max Roesch
Hello Chris,

could you share your porject? Which IDE do you use ? Which SW Version is ob your CAM?

Greetings
Max

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed May 27, 2020 6:14 pm
by Chris Maier
Hi Max,

I can try to guide you to a first connection with your camera.
The rest will be up to you ;-)

Chris Maier wrote:Try to follow the instructions step by step:
https://github.com/schoolpost/BlueMagic32

(...)

I used this sketch:
https://github.com/schoolpost/BlueMagic ... a_Settings

As I advised before: Try to follow all the steps exactly.

I am using the Arduino IDE 1.8.1 on OSX.

Give me some details:
- IDE
- Board
- Sketch
- Error Messages etc.

Good luck!
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 28, 2020 7:55 am
by Max Roesch
Hi Chris,

of course, connection will be the only thing which I'm interested in.

First/initial Setup:

Visiual Studio Code with PlatformIO
ESP32 Dev Module
Example sketch from BlueMagic32 library
No errors

First episode:
Uploading sketch-->serial monitor is asking for pin-->camera is showing pin-->entering in serial monitor-->ESP does not connecting an repead the pairing process several times (~5)-->ESP stops asking for pin code and camera do not has no bluetooth connection at all. There were a short message on camera screen (bluetooth connection error).

Second episode:
trying same with new uploaded sketch ( platformIO and Arduino IDE )-->esp does not start to connect to camera ( no pin an camera shown/serial monitor is not asking for input pin )-->erasing complete esp flash over power shell command ...esptool_py\2.6.1>esptool --chip esp32 --port com3 erase_flash--> after uploading sketch, same procedure as descripted in "first episode".



Greetings
Max

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 28, 2020 5:26 pm
by Chris Maier
Hi Max,

after watching your short video, I guess you made only a minor error.
Please change the setting of your Serial Monitor from "New Line" (Neue Zeile) to "NL + CR" (Sowohl NL als auch CR).

NL+CR.png
New Line plus Carriage Return
NL+CR.png (16.7 KiB) Viewed 107737 times


Wit this fix the BLE pairing should work fine.
Without this small fix the code was never sent to the camera, that why you received the timeout message.

Good luck!
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 28, 2020 6:01 pm
by Max Roesch
Hello Chris,

thanks for your replay. Have the same issue as before. If you like in to github repository. --> New Line is written for Serial Monitor. Deeper look into programm code shows:

ch = Serial.read();
if (ch >= '0' && ch <= '9')
{
pinCode = pinCode * 10 + (ch - '0');
Serial.print(ch);
}
} while ((ch != '\n'));


--> char will be read up to \n

Which camera SW version do you use? It is a little bit strange, because I can not connect with any bluetooth app to my camera.

Greetings

Max

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 28, 2020 6:24 pm
by Chris Maier
Hello Max,

you may contact me via private message in German or English.

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun Jun 21, 2020 12:27 pm
by IllimarR
Hi

Few days ago started to write my own Bt library and by surprise found yours - great work!
I did find some issues there, will report them later, also added some additional functionality.

Image

Image

Thanks again for the library and will try to commit my changes (no experience using GitHub) when verified.

IllimarR

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Jun 23, 2020 9:10 pm
by Csaba Nagy
IllimarR wrote:Hi

Few days ago started to write my own Bt library and by surprise found yours - great work!
I did find some issues there, will report them later, also added some additional functionality.

Image

Image

Thanks again for the library and will try to commit my changes (no experience using GitHub) when verified.

IllimarR


Great project! glad to see you were able to get it up and running on an M5Stack, Very efficient use of the limited screen real estate.

For submitting library modification you should do it via a Pull-request :) ( http://archaeogeek.github.io/foss4gukdo ... quest.html )

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Oct 06, 2020 8:49 pm
by John Thorborg
Great project, love work with it but...
I've got a M5stick-C, M5stick-C plus, several different ESP32 units and for some reason every single attempted ends up with a re-boot on any of the different ESP32 devices on the moment of entering the pin ('Newline' activated of course).
Code: Select all
BLE Advertised Device found:
BLE Advertised Device found:
---> PLEASE ENTER 6 DIGIT PIN (end with ENTER) :
517380
Stack smashing protect failure!

abort() was called at PC 0x400df9bc on core 1

Backtrace: 0x40092a2c:0x3ffc9610 0x40092c5d:0x3ffc9630 0x400df9bc:0x3ffc9650 0x400d93ff:0x3ffc9670 0x400d9426:0x3ffc9730 0x400d577d:0xa0b063cc

Rebooting...
BLE Advertised Device found:

Has there been a change/update somewhere on this library in combination the Arduino IDE?
Am I overlooking something?

Thanks

BLE Controller & Data Logger

PostPosted: Tue Mar 16, 2021 5:37 pm
by Chris Maier
Hi,

I have just created a new prototype for my personal use.
Main_Unit.jpg
Main_Unit.jpg (255.41 KiB) Viewed 104372 times


The display is showing and updating:
  • Timecode
  • ISO
  • Codec & Quality
  • Whitebalance
  • Shutter Angle
  • Resolution
  • Tint
  • Shutter Speed
  • Aperture

Functions:
  • Change Aperture via two buttons on the left and right.
  • Toggle recording via long press the middle button.


Use of external hardware:

Use a cheap rotary encoder connected to the grove port on the side.
This dial works as the buttons - but more intuitive.
Full_Set.jpg
Full_Set.jpg (272.28 KiB) Viewed 104372 times


"Special":
Use a micro SD card to log the metadata (e.g. timecode + aperture, shutter, ISO, ...) during recording.
Produce a .srt subtitle file to display in any player or NLE. Still a bit "work in progress".
Main_Card.jpg
Main_Card.jpg (244.99 KiB) Viewed 104372 times


Open topics:
  • Field Pairing without Computer via the Buttons on the device.
  • Make other settings available to change via menu.
  • Detect a disconnect.
  • Automatic reconnect.
  • Long range version via LoRa radio.
  • Simultaneous control of multiple cameras.


Not possible?
Display the battery status of the controller while the grove port (sca & scl) is used for the rotary encoder. (Maybe building a custom connector to use other GPIO pins instead of the grove port.)


Most of the camera code used from Csaba Nagy:
https://github.com/schoolpost/BlueMagic32

Visually inspired by:
https://github.com/IllimarR/BluMagx
(Source code not available, yet?)
& Blackmagic OS...

Hardware:
Board: https://m5stack-store.myshopify.com/col ... opment-kit
Cable / Grove Connector: https://m5stack-store.myshopify.com/col ... rove-cable
Rotary encoder: Bourns PEC11R-4215K-S0024 (maybe)

(+ small case, 3 core shielded cable, 40mm metal potentiometer knob)

What do you think?

Regards,
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun Apr 18, 2021 5:10 pm
by towerpc
I assembled two devices using the BlueMagic 32 library, everything works, I took the M5StickC and M5Stack platforms. In the beginning there were problems, before loading the sketch, you need to clear the memory, otherwise ESP 32 thinks that BIND is there and nothing happens.

The BluMagx project does not work, white text on a black background, BluMagx tries to connect to the camera and that's it. I cannot clear the memory, BluMagx comes as completely a BIN file.

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 20, 2021 6:09 am
by Wolfgang Winne
DSC_2512.jpg
no contact.
DSC_2512.jpg (69.16 KiB) Viewed 103215 times




no bluetooth connection to 6K Pro.


remote.jpg
remote.jpg (122.87 KiB) Viewed 103215 times

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 20, 2021 9:32 am
by Chris Maier
Hi Wolfgang,

I had the same experience with that fork.
This was the reason to create a sketch on my own.
(based on that library)

See images above.

Regards
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 20, 2021 11:11 am
by Wolfgang Winne
This was the reason to create a sketch on my own.


Will there be something of it to download at some point?

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Thu May 20, 2021 8:54 pm
by Csaba Nagy
Not sure if it has or hasn't been mentioned yet. But if you are having issues getting the initial connection, make sure you are using the older 1.0.4 ( or possibly 1.0.5 ) version of the esp32 Arduino library. They are making changes lately and it is breaking compatibility with Bluemagic32.

https://github.com/espressif/arduino-esp32

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Fri May 21, 2021 8:39 am
by Chris Maier
Csaba Nagy wrote:Not sure if it has or hasn't been mentioned yet. But if you are having issues getting the initial connection, make sure you are using the older 1.0.4 ( or possibly 1.0.5 ) version of the esp32 Arduino library. They are making changes lately and it is breaking compatibility with Bluemagic32.

https://github.com/espressif/arduino-esp32

Hi,

the images of Wolfgang are showing that he was using the binary blob file:
https://github.com/IllimarR/BluMagx and not (yet) your great library https://github.com/schoolpost/BlueMagic32.

BTW:
Is it inappropriate to ask for a demo sketch to change the focus (especially for EF-lenses)?
(e.g. via the buttons of the M5-Stick-C or M5 Stack Core)

Regards,
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun May 30, 2021 6:37 am
by Wolfgang Winne
DSC_2520.jpg
Yeahhhhhhh.......
DSC_2520.jpg (157.07 KiB) Viewed 101401 times


"Meine 6K Pro ist nun Froh." ;-)

Thanks Chris!!!

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun May 30, 2021 3:34 pm
by Chris Maier
Wolfgang Winne wrote:
"Meine 6K Pro ist nun Froh." ;-)

Thanks Chris!!!
My pleasure - good to hear that you got it working.

Regards,
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Jun 01, 2021 8:11 am
by bikoutelis
Hi everyone and many thanks for your collective effort so far, especially Csaba for taking the time to create this library.

I've had trouble getting this to work and I would greatly appreciate your help on it. My ultimate goal is to use the ESP32 as a bridge between TouchDesigner and the camera. So TD would be communicating with the ESP32 via serial and then using BlueMagic as you all have successfully done. I have been unsuccessful in establishing a bluetooth connection using the library examples though.

My setup is as follows:
-Camera: Pocket Cinema 6K
-Microcontrollers I've tried: M5StickC / ESP32 dev board / Adafruit Feather HUZZAH32
-Arduino IDE

At first I tried with the latest version of the board without any luck and then switched to 1.04

The furthest I can get is inputting the 6 digit pin (tried using newline and both NL&CR) but then the board reboots and the process starts again.

If anyone could provide any help, I would be most grateful.

esp-bmc.PNG
esp-bmc.PNG (174.95 KiB) Viewed 101186 times

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed Jun 02, 2021 11:30 am
by Wolfgang Winne
Has now also happened to me, the BT number is not accepted.
I suspect the camera is no longer able to connect BT. Delete camera BT-memory.

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed Jun 02, 2021 5:40 pm
by bikoutelis
Hey Wolfgang, thanks for replying. Tried clearing bluetooth devices in the camera as well as erasing the esp32's memory and reuploading. No luck sadly. Exact same thing happens. I can establish a bluetooth connection through iOS devices, so I suspect things are OK on the camera side. Did that fix things for you? Please let me know if you found another solution

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Fri Jun 04, 2021 6:46 am
by Wolfgang Winne
bad short message:

ESP32 Factory reset (erase flash) is also not a solution.

http://iot-bits.com/erase-esp32-flash-completely/


Code that worked, does not get a connection, camera the reason?

in the next few days I'll get a fresh new ESP32-core2, if it doesn't work either, it's probably because of the camera.


P.S.
with handy-App no problem to connect. camera is ready......

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Fri Jun 04, 2021 11:00 am
by Wolfgang Winne
It's running again!

Erase all old Arduino Libary (m5stack, EsP32 etc.) and install brandnew (m5stack + ESP32 only 1.4). thats all.....

only m5stack from here: https://github.com/m5stack/M5StickC


DSC_2528.jpg
record now in "Red", stop in gray.....
timecode in Red is.....for me tough in code.....
DSC_2528.jpg (192.72 KiB) Viewed 100895 times

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sat Jun 05, 2021 2:40 pm
by Wolfgang Winne
Little new design ;-)


Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun Jun 06, 2021 6:36 pm
by Chris Maier
Wolfgang Winne wrote:Little new design ;-)

Great to see that my Sketch was human readable (and changeable). :ugeek:

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Mon Jun 07, 2021 6:48 am
by Wolfgang Winne
The next (BlueMagic32) expansion is already planned. :)

Image

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sat Jun 12, 2021 6:56 am
by Wolfgang Winne
Smaller than expected. Now somehow integrate it into the BlueMagic32 code.

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Sun Jun 13, 2021 9:51 am
by Chris Maier
Hi all,

I am working on "field pairing mechanism" to be able to pair or re-pair the camera (e.g. after a reset of the camera) with the controller without a computer.
Field_Pairing_001.jpg
Field_Pairing_001.jpg (146.51 KiB) Viewed 100386 times


At the moment I can enter the code via the left button and move to the next digit via the right button.
After all six digits have been set the right button sends the value to the serial monitor as a proof of concept.
Quite simple, yet.
I guess it is harder to makle this work with the library.

As I only need two buttons, this could be easily done with an even smaller device like the M5StickC...

Regards,
Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Aug 03, 2021 12:19 am
by mattrachwal
I have things working so far however I cannot get the focus to set, Ive read that canon EF lenses need relative focus to control it? I cant tell if im failing to pass in the right numbers or if absolute focus wont work? Any help would be appreciated

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Wed Sep 29, 2021 10:53 am
by pmijoiu
Hi everyone,

I cannot get to the PIN input phase.

I've compiled using ESP32 1.0.4 and 1.0.5 and none work.

I have a BMPCC4K with Firmware version 7.3. I've cleared all paired devices. My android BT app works just fine with this camera.

I tried with 2 different ESP32 boards:

- WEMOS Lolin32
- DOIT Devkit V1

This is my serial monitor output:
------------------
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
----------------------

Any idea about what I could be doing wrong?

Thank you,
Paul

ESP tool issue on the lastest version of OSX?

PostPosted: Sun Feb 20, 2022 2:35 pm
by Chris Maier
Hi all,

meanwhile I have upgraded to a new M1 Mac and I am running into strange problems with my old sketches.

So I went back to the basic Examples:
https://github.com/schoolpost/BlueMagic ... ttings.ino

This sketch does no longer trigger the PIN request of my camera.

BUT if I add
Code: Select all
BMDConnection.clearPairing();
between line 10 and 11 it does work.

Code: Select all
BMDConnection.begin("BlueMagic32");
BMDConnection.clearPairing();
BMDControl = BMDConnection.connect();


So what ist the issue?
This does only work tethered, as I have to enter the PIN (because of the clearing) on every reboot.

OSX 12.2.1 on M1
Arduino IDE 1.8.16
ESP 2.0.2 (I tried a few versions...)

When I tried ESP 1.0.4 on OSX 12.2.1 the sketch does not compile at all:
"Traceback (most recent call last):
File "esptool.py", line 57, in <module>
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
File "serial/tools/list_ports.py", line 29, in <module>
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
File "serial/tools/list_ports_posix.py", line 31, in <module>
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
File "serial/tools/list_ports_osx.py", line 32, in <module>
ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found
Failed to execute script esptool
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder gab 255 zurück
Fehler beim Kompilieren für das Board M5Stick-C."


I also tried to a Windows Machine.
Here everything works fine as expected.

Windows 10 Pro 21H2
Arduino IDE 1.8.19
ESP 1.0.4


Is there an issues of the ESP tool on the lastest version of OS X?
Maybe connected to pyserial?

Any help is highly appreciated!

Chris

Re: BlueMagic32 | Blackmagic Bluetooth Arduino Library

PostPosted: Tue Apr 05, 2022 8:53 am
by David1959
Hi,

Is it possible to pair controller with camera just on the field, without computer, Arduino ID and serial monitor.

Are there any IOS apps that can do this connection?

Thank You

Re: ESP tool issue on the lastest version of OSX?

PostPosted: Wed Jul 20, 2022 10:35 am
by teo3vs
Chris Maier wrote:Hi all,

meanwhile I have upgraded to a new M1 Mac and I am running into strange problems with my old sketches.

So I went back to the basic Examples:
https://github.com/schoolpost/BlueMagic ... ttings.ino

This sketch does no longer trigger the PIN request of my camera.

BUT if I add
Code: Select all
BMDConnection.clearPairing();
between line 10 and 11 it does work.


Hi Chris, I'm facing the same issue with an M1 mac mini Mac OS 12.2, Arduino 1.8.19, M5stickPlus.

By adding this line as you said I've been lucky only once and then no more
Code: Select all
BMDConnection.clearPairing();


Have you found any way to fix in the meantime?