Re: Bluetooth control

 

Hi Markus -- I'm pleased to see you took this and ran with it and found success!

Here is what you are going to do to get access to function and media keys.  It looks like you have already found the file you need, in order to see that KEY_UP_ARROW sends a hex value of DA.  The complete list is here https://github.com/T-vK/ESP32-BLE-Keyboard/blob/master/BleKeyboard.h

To send 0xDA from Crestron (as it appears in the link above), you'll just send \xDA in the serial send block.  Both of these are notations for representing DA as a hex byte, just in two different contexts.  Because \xDA is an escape code, it causes the Crestron processor to emit the single byte with the hexadecimal value DA (rather than the four characters \,x,D,A).  Best I can tell, it's really that simple.  That should get you the up arrow.

It's also trivial to modify the Arduino script to manipulate the data in-stream and translate it, which might be necessary if you're interested in pressing any of the "media keys" (like KEY_MEDIA_PLAY_PAUSE) that aren't defined as a single byte.  For example you might test for the byte B0 (just one I picked at random for being unused), and map it to KEY_MEDIA_PLAY_PAUSE by tweaking the Arduino code with the following pattern:

if (inputBuffer=="\xB0")
bleKeyboard.write(KEY_MEDIA_PLAY_PAUSE);
else if (inputBuffer=="\xB1")
bleKeyboard.write(KEY_MEDIA_STOP);
else if (...repeat this same pattern for more keys...)
bleKeyboard.write(...more keys...);
else
bleKeyboard.print(inputBuffer); // Existing line that sends any keys not caught by the above "if" statements

You don't need to make any of these modifications if all you want is arrow and function keys and other normal keyboard keys, which are already available as single bytes you can send from Crestron.

Mike


On Sun, Dec 15, 2024 at 9:03 AM Markus Vollmer via groups.io <crestron=markusvollmer.com@groups.io> wrote:
On Fri, Nov 29, 2024 at 12:15 PM, Michael Caldwell-Waller wrote:
I threw the code and the instructions into a Pastebin --- https://pastebin.com/c2MPHAZ0 -- come back and search for this later if you decide to try it.
 
My Pastebin contains links to order the same hardware I tested with.  It's under $20, coming from Shenzhen China.  You'll spend more on shipping than on the hardware itself.  When I order from there and ship with DHL, the shipments consistently arrive early, 2-3 days typical.
 
My biggest use case for devices from this company is in building cheap sensors (mostly temperature) that report sensor data over WiFi.  They are pretty resilient and reliable, especially for the price, and they boot in under 1sec.  Any network issues, they do a hard reboot (as I have them configured) resulting in amazing total uptime.  I get them to talk to Crestron over serial, or TCP, or UDP.  Other applications I've made with their devices include: small tabletop LCD status displays, an automatic pool filler, an irrigation system monitor (measure water flow / solenoid current per zone), fireplace flame sensor (via IR camera), a network-to-serial driver for a large "stock ticker" LED sign, and a house gate controller.  Generally I'm happy with how the solutions have turned out.
 
Mike
 
Hi Mike,
 
thank you so much for your input!
 
I took the plunge and ordered three sets of the parts that you recommended.
 
Following your detailed instructions, I got the Bluetooth keyboard recognized by the smart monitor, but I am struggling with the syntax of the strings that I can send via RS232.
The HID keyboard bluetooth library that is being used is said to have the same functionality as the USB keyboard, if I got that right.
 
Having a look at the Arduino keyboard documentation, I found a section where they explain, how to trigger non-ASCI keys, like the function key F1 to F20, the arrow keys and so on, as those are the keys I need to control the monitor.
 
But what would the syntax be of what I send via RS232 to the "Bluetooth keyboard dongle", e.g. for the navigation up key where they say "Key: KEY_UP_ARROW, Hexadecimal value: 0xDA, Decimal value: 218"? Do I need a delimiter?
Have you tried to send anything but ASCII characters via these magic devices?
 
Thanks agaiin!
 
Markus
 


Re: Roku, preferred IP module

 

I was able to re-enable control through the Roku iPhone App. 


CHV-TSTATRF not showing up on touchscreens

 

Hi all,
I have a strange problem with one CHV-TSTATRF not reporting to any touchscreens. It had been working fine until I had the replace the batteries. There are four TSTATS in the system and the other three are working fine but for some reason this one stopped reporting back to the program and touchscreens after I changed the batteries. It shows up in the MNET gateway and I even tried reaquiring it but that didn’t fix the problem.
Anyone have thoughts on what the problem could be?


Re: Bluetooth control

 

On Fri, Nov 29, 2024 at 12:15 PM, Michael Caldwell-Waller wrote:
I threw the code and the instructions into a Pastebin --- https://pastebin.com/c2MPHAZ0 -- come back and search for this later if you decide to try it.
 
My Pastebin contains links to order the same hardware I tested with.  It's under $20, coming from Shenzhen China.  You'll spend more on shipping than on the hardware itself.  When I order from there and ship with DHL, the shipments consistently arrive early, 2-3 days typical.
 
My biggest use case for devices from this company is in building cheap sensors (mostly temperature) that report sensor data over WiFi.  They are pretty resilient and reliable, especially for the price, and they boot in under 1sec.  Any network issues, they do a hard reboot (as I have them configured) resulting in amazing total uptime.  I get them to talk to Crestron over serial, or TCP, or UDP.  Other applications I've made with their devices include: small tabletop LCD status displays, an automatic pool filler, an irrigation system monitor (measure water flow / solenoid current per zone), fireplace flame sensor (via IR camera), a network-to-serial driver for a large "stock ticker" LED sign, and a house gate controller.  Generally I'm happy with how the solutions have turned out.
 
Mike
 
Hi Mike,
 
thank you so much for your input!
 
I took the plunge and ordered three sets of the parts that you recommended.
 
Following your detailed instructions, I got the Bluetooth keyboard recognized by the smart monitor, but I am struggling with the syntax of the strings that I can send via RS232.
The HID keyboard bluetooth library that is being used is said to have the same functionality as the USB keyboard, if I got that right.
 
Having a look at the Arduino keyboard documentation, I found a section where they explain, how to trigger non-ASCI keys, like the function key F1 to F20, the arrow keys and so on, as those are the keys I need to control the monitor.
 
But what would the syntax be of what I send via RS232 to the "Bluetooth keyboard dongle", e.g. for the navigation up key where they say "Key: KEY_UP_ARROW, Hexadecimal value: 0xDA, Decimal value: 218"? Do I need a delimiter?
Have you tried to send anything but ASCII characters via these magic devices?
 
Thanks agaiin!
 
Markus
 


Re: Bluetooth control

 

On Tue, Dec 3, 2024 at 08:47 AM, Greg B wrote:
just curious what TVs only have bluetooth and no IR so I can avoid them. I havent ran into anything other than cheap streaming devices that are bluetooth only so far.
I do have the challenge that I have a Samsung TV and a Samsung "smart" PC monitor (ViewFinity S9 5K monitor)  in the same room and for a number of IR commands they both react on the same commands. I don't use the IP-TV stuff in the monitor, but for some settings, the remote is needed. Now if I can control the monitor via Bluetooth and the TV via IR, then I would be fine! ;-)
 
 


Re: Best 32" TV for control integration

 

We have been using the Samsung art TVs


Re: Recommandation for better organise Press/Visibility Digital join

 

When he says leave some space, think in tens or hundreds not thousands. I had a takeover that they had decided to use thousands for source control. It was something like, Satellite started on 6001, Blu-ray 7001, Apple TV 8001 and so on. This makes for a lot of time scrolling. Plus i think the last usable join it 14999. Something to keep in mind, every join number from 1 to the last used join gets assigned in the simpl program. So if you are only using join 10000 and opened that program in a text editor you see all 10000 joined defined. I’m not sure how this is interpreted during compile, but I would guess it gets compiled as well.


Re: any working NTP servers

 

They do support DLST. I had a CP2E running a small lighting system that would shut off nvram every year when it returned to normal time.


Re: New Roku Issues

 

Steve, thanks for letting us know about issue 1. I’m sure it saved me a couple of hours on Friday when I had my first service call for that issue.


Re: Roku, preferred IP module

 

I use the one from this site. I don’t use direct launch so I removed all that logic. The only trouble I have had with it was the latest update that shut control off. Finding the factory remote to reenable full app control was a challenge.


Re: WiiM

 

Before I embark on trying to do some basic controls, did the API get updated to work with the Media Player App?


Roku, preferred IP module

 

Didn't want to high jack the other the Roku problems thread.  I have the latest database but not seeing anything.  Have found a couple that rolled their own.
 


Re: RMC4 & ch5 web XPanel

 

Under "Project Format", select "Archived File" (vs) "Folder". The "Load Project As" radio buttons will no longer be greyed out.


Re: New Roku Issues

 

I can confirm Steve's reporting of issue number one as I have clients calling. :-(  Some more detail:
-This seems to have been enabled between Roku v14.0 and v14.1, My testing was done on an Ultra 4640X.
-In Crestron Home the device will appear as online under pairing but will be uncontrollable (the old trick of changing the port away from 8060 and back does not work).
-Clarifying Steve's post, the menu path is Settings>System>Advance system settings>Control by mobile apps>Network access
 
Once you change the setting to "Enabled" Crestron will reconnect immediately.  No rebooting or restarting of anything required.
 
-Jim


Re: any working NTP servers

 

Pretty sure Crestron processors only allow for time zone adjustment, as far as I’m aware there’s no DST offset in the web interface.

I have a site that relies heavily on schedules so I’m keen to get this correct.

Tim Greenbank

Control Systems Engineer


On 14 Dec 2024, at 09:13, Paul Dengate via groups.io <paul.dengate@...> wrote:


NTP servers provide UTC.
Clients need to apply their timezone and daylight-saving offset.
That's a general statement - haven't looked into how Crestron handle it, but the NTP side of things should definitely be UTC.


Re: any working NTP servers

 

NTP servers provide UTC.
Clients need to apply their timezone and daylight-saving offset.
That's a general statement - haven't looked into how Crestron handle it, but the NTP side of things should definitely be UTC.


Re: any working NTP servers

 

Side question… do NTP servers adjust for daylight savings?

Tim Greenbank

Control Systems Engineer


On 14 Dec 2024, at 06:21, Brad Wykoff via groups.io <bradwykoff@...> wrote:


It was a 2 series processor that I ended up just upgrading to a 4 series to use the internal NTP.


Re: any working NTP servers

 

It was a 2 series processor that I ended up just upgrading to a 4 series to use the internal NTP.


Re: any working NTP servers

 

Are you on an older 2-series processor? All of the newer ones (3 and 4 series) don't need a module for NTP, you set the time zone/NTP in the Processor itself.
 
I generally use a local one or googles (time.google.com or 216.239.35.0)


Re: any working NTP servers

 

I was using the Crestron module "Network Time Sync v1.0" with the default servers and getting errors in text console with debugging enabled.