Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth enabled fails to compile #4

Open
troth530 opened this issue Jan 29, 2024 · 5 comments
Open

Bluetooth enabled fails to compile #4

troth530 opened this issue Jan 29, 2024 · 5 comments

Comments

@troth530
Copy link

Both Web Builder and Arduino IDE these settings fail to compile.

{"driver":"iMXRT1062","URL":"https://github.com/grblHAL/iMXRT1062","board":"BOARD_T41U5XBB",
"symbols":["USB_SERIAL_CDC=1","N_AXIS=5","SDCARD_ENABLE=1",
"BLUETOOTH_ENABLE=2","WEBUI_ENABLE=3","ETHERNET_ENABLE=1","TELNET_ENABLE=1","WEBSOCKET_ENABLE=1",
"FTP_ENABLE=1","HTTP_ENABLE=1","MDNS_ENABLE=1","ESTOP_ENABLE=0","SPINDLE0_ENABLE=11","N_SPINDLE=1"],"docker_instance":"","grblHAL":"webBuilder"}

BLUETOOTH_ENABLE=2 and driver.h gives an error if all options for UART >1 here

If this error above is bypassed I hc_05.c give this error and no STATE pin gets assigned. I have used this board map before with bluetooth and pin 34 or 35 gets assigned.

Thank you!

@terjeio
Copy link
Contributor

terjeio commented Jan 29, 2024

BLUETOOTH_ENABLE=2 and driver.h gives an error if all options for UART >1 here

I'll fix that - a missed side-effect of changing BLUETOOTH_ENABLE to 2 after reserving BLUETOOTH_ENABLE=1 for "native" Bluetooth configurations used by ESP32 and Pico W.

If this error above is bypassed I hc_05.c give this error and no STATE pin gets assigned.

What is your $385 setting?

@troth530
Copy link
Author

troth530 commented Feb 2, 2024

What is your $385 setting?

I have no $385 setting, is it something I can set in my CPU_map file?
Maybe it's a chicken and egg situation? Perhaps if I can't compile with BT on, then I can't access $385, and $385 needs to be set to enable BT?

Also I notice in web builder 0.9 based on Jan 27 code that Bluetooth is greyed out.

Thank you!

@terjeio
Copy link
Contributor

terjeio commented Feb 2, 2024

I have no $385 setting, is it something I can set in my CPU_map file?

Enable by uncommenting this line.

Also I notice in web builder 0.9 based on Jan 27 code that Bluetooth is greyed out.

I've just fixed that.

@troth530
Copy link
Author

Hi @terjeio that commit definitely fixed the issue with the compilation error and bluetooth works a little. First it seems the Teensy needs to be connected through IOsender before I can connect through BT and secondly it seems to crash often. The only thing I am doing out of the ordinary is that I set the HC-05 baud to 115200 using AT commands (AT+BAUD4). Also state pin needs a pulldown in case the BT module is not connected.
Thank you!

@terjeio
Copy link
Contributor

terjeio commented Mar 11, 2024

First it seems the Teensy needs to be connected through IOsender before I can connect through BT

Not needed when I try.

secondly it seems to crash often.

The module loses connection?

Also state pin needs a pulldown in case the BT module is not connected.

I have updated tha aux HAL to allow enabling of pulldown from code and can add that to the plugin, however if there is a buffer at the input that will not help. Or I could disable the plugin if the input is high on startup and $377 is set to 1 (true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants