Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RL7023 Stick-D/IPS対応 #8

@matthewbadeau

Description

@matthewbadeau

Description

Support for the RL7023 Stick-D/DSS already exists. However, RL7023 Stick-D/IPS is another product by Tessera Technology that has similar features. It is incredibly close to the same features except for some small changes to the serial commands sent to the device.

Differences

SKSCAN

SKSCAN only takes 3 parameters

SKSCAN +
<MODE>+
<CHANNEL_MASK>+
<DURATION><CRLF>

<MODE> is the same: 2:アクティブスキャン(IEあり)
<CHANNEL_MASK> is the same: スキャンするチャンネルをビットマップフラグで指定します。最下位ビットがチャンネル 33に対応します。
<DURATION> is the same: 各チャンネルのスキャン時間を指定します。スキャン時間は以下の式で計算されます。

There is no fourth parameter for <side>.

SKSENDTO

SKSENDTO does not define a side.

SKSENDTO+
<HANDLE>+
<IPADDR>+
<PORT>+
<SEC> +
<DATALEN>+
<DATA>

正しい例:
SKSENDTO 1 2001:BEEF:0000:0000:0000:00FF:FE00:0003 0E1A 1 0005 01234
("01234"は画面にエコーバックされません)

Proposed changes

  • We need a programmatic way to determine if the Stick-D is DSS or IPS. We can guess based on the results of SKSCAN. If it fails, we can retry with only 3 parameters
  • SkInfoResponse.decode(), SkEventRxUdp.decode(), SkScanResponse.decode(), and SkSendToResponse.decode() needs to handle errors if side does not exist

What do you think of this approach? I can create a PR within the next few days.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions