PDA

View Full Version : Help with REDLINK protocol



M Lazic
12-04-2016, 02:48 PM
First of all, I am newbie to red sdk and redlink protocol.
I found that I can navigate to upper status menu and increase/decrease ISO value.
But is there a way to open ISO menu form upper status row by using some of RCP command?

Trent Lillehaugen
12-05-2016, 10:46 AM
Although you can control the camera's UI using RCP (for example, using the NAVIGATION_* key actions) that is not its intended purpose. The point of RCP is to control the camera directly - not by manipulating the UI on the camera. In most cases this would be through a UI on an external device like a phone, pad, or computer. Another good use is for custom hardware to be able to control the camera (even without a UI), like toggling record, or controlling the lens focus position.

If you want to set the ISO, the best thing to do is set it directly:
using the RCP API:
rcp_set_int(camera_connection, RCP_PARAM_ISO, 800);
using the raw RCP commands:
#$EXT:S:ISO:800:\n

That being said, if you want to control the camera's UI using RCP, you would use parameter: RCP_PARAM_KEYACTION (KEYACT)

and the following key actions from key_action_t:
KEY_ACTION_NAVIGATION_SELECT = 9,
KEY_ACTION_NAVIGATION_LEFT = 12,
KEY_ACTION_NAVIGATION_RIGHT = 13,
KEY_ACTION_NAVIGATION_MENU = 14,
KEY_ACTION_NAVIGATION_UP = 33,
KEY_ACTION_NAVIGATION_DOWN = 34,
KEY_ACTION_NAVIGATION_CW = 35,
KEY_ACTION_NAVIGATION_CCW = 36,

For example, to emulate hitting the "ENTER" button on the sidehandle/sidekick/switchblade:
using the RCP API:
rcp_set_int(camera_connection, RCP_PARAM_KEYACTION, KEY_ACTION_NAVIGATION_SELECT);

using raw RCP commands:
#$EXT:S:KEYACT:9:\n

M Lazic
12-08-2016, 08:47 AM
Thank you for your reply.
I am familiar with actions you mentioned, it's just that I thought it is maybe possible to open ISO menu by using some similar command.
Wasn't sure if I missed it in docs.

Mikael Lubtchansky
12-08-2016, 10:24 AM
Also those KEY_ACTIONs... they might not open the menu itself but lets you select the ISO slot and move values up / down

KEY_ACTION_SLOT_SET_ISO = 2,
KEY_ACTION_SLOT_NEXT_VALUE = 17,
KEY_ACTION_SLOT_PREVIOUS_VALUE = 18,

M Lazic
12-10-2016, 04:37 AM
Thank you Mikael,
those actions seems to be best option for what I need.
And just to check, this is supposed to work even without side handle?

Mikael Lubtchansky
12-10-2016, 06:09 AM
Thank you Mikael,
those actions seems to be best option for what I need.
And just to check, this is supposed to work even without side handle?

Yes !

M Lazic
02-11-2017, 02:57 AM
I have a question about "FLENGTH" command, get command returns valid answer from camera, but get_list doest return answer at all.
Is there a mode in which it is expected to return list of available values?
Using REDLINK_SDK_v6.42.5.

Mikael Lubtchansky
02-11-2017, 06:51 AM
I think simply because this parameter does not support lists.

It is a read only (G vs S) parameter as focal lenght cannot be set via RCP but just reported for display purposes if the lens / mount are able to communicate this info.

Having a list of focal lenght would not be very useful ... since the zoom part of a photo lens is never motorized anyway.

M Lazic
02-20-2017, 03:10 PM
Ok, fair. But could focal length and focal distance be updated by rcp commands?
With AF mode on manual, neither set focus, nor key actions focus nea
r/far are modifying those values.

And thank you for your help.

Antony Newman
08-21-2020, 12:57 PM
Sorry to revive an old thread.

I have tried firing all of the following off at a few hundred menu positions and states - but can't seem to work out what they do:

KEY_ACTION_SLOT_SET_ISO
KEY_ACTION_SLOT_SET_COLOR_TEMP
KEY_ACTION_SLOT_SET_SHUTTER
KEY_ACTION_SLOT_SET_APERTURE
KEY_ACTION_SLOT_SET_FPS
KEY_ACTION_SLOT_SET_FORMAT
KEY_ACTION_SLOT_SET_REDCODE

KEY_ACTION_SLOT_PREVIOUS_VALUE
KEY_ACTION_SLOT_NEXT_VALUE

Q1) Are they depreciated?

Q2) Has their functionality been absorbed into :
KEY_ACTION_NAVIGATION_MENU,
KEY_ACTION_NAVIGATION_SELECT
KEY_ACTION_NAVIGATION_UP,
KEY_ACTION_NAVIGATION_DOWN,
KEY_ACTION_NAVIGATION_RIGHT
KEY_ACTION_NAVIGATION_LEFT
KEY_ACTION_NAVIGATION_CCW
KEY_ACTION_NAVIGATION_CW

Thanks,
AJ

Antony Newman
08-25-2020, 10:09 AM
Update (with input from RED)

The following are depreciated :
KEY_ACTION_SLOT_PREVIOUS_VALUE
KEY_ACTION_SLOT_NEXT_VALUE

Regards,
AJ