Giter Site home page Giter Site logo

.net framework about secs4net HOT 22 CLOSED

mkjeff avatar mkjeff commented on July 20, 2024
.net framework

from secs4net.

Comments (22)

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff

from secs4net.

mkjeff avatar mkjeff commented on July 20, 2024

the current version uses Array.Empty method. it only available on 4.6+
It is not difficult to get rid of the dependency and downgrade to 4.5.2.

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

so you mean it's totally ok to downgrade to 4.5.2.? @mkjeff

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

i set up the 4.6.2 version on my pc, but the software visual studio2015 can not recognize it. @mkjeff

from secs4net.

mkjeff avatar mkjeff commented on July 20, 2024

@zhuwei3359 you have to install the corresponding version of Developer Pack.

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff i'll try ,thanks a lot

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff thanks for your advice, the 4.6.2 version is available now. bravo

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff i think there is some faults in item.cs. The brackets are not matching .can i get some advice?

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff sorry, i download the older version resource code. i just found that, now it's totally ok!

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff i have some question about the header.DeviceId ,is the default value 12320? i set the device number 16, and got a frame of data from the window 00 00 00 0A FF FF 00 00 00 01 1A FB 81 75(select.req),and i reply 00 00 00 0A 00 10 00 00 00 02 1A FB 81 75(select.rsp),and then the window tell me:Received Unrecognized Device Id Message, and i find that the value of the header.DeviceId is 12320

from secs4net.

mkjeff avatar mkjeff commented on July 20, 2024

Default device id is 0(ushort), please make sure the device id of both client/server are the same.

00 00 00 0A FF FF 00 00 00 01 1A FB 81 75
00 00 00 0A 00 10 00 00 00 02 1A FB 81 75

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

so the correct transaction is:
00 00 00 0A FF FF 00 00 00 01 1A FB 81 75
00 00 00 0A FF FF 00 00 00 02 1A FB 81 75
is this right? @mkjeff

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff i got another question. this project should be regarded as an equipment or a host?

from secs4net.

mkjeff avatar mkjeff commented on July 20, 2024

The API design has no assumption on this. it should be work on both sides.

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

@mkjeff sorry for bothering you again. if i want to reply a primary message,what is the format that i should input to the interface window? for example s1f2.

from secs4net.

Joan2019 avatar Joan2019 commented on July 20, 2024

Can you help me? I get this error message,OS:Win10 ,visual studio community 2017 version:15.9.5
System.IO.FileNotFoundException: 未能加载文件或程序集“System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”
在 Secs4Net.StreamDecoder.<.ctor>g__GetMessageHeader|23_1(Int32& length, Int32& need)
在 Secs4Net.StreamDecoder.<.ctor>g__GetTotalMessageLength|23_0(Int32& length, Int32& need)
在 Secs4Net.StreamDecoder.Decode(Int32 length)
在 Secs4Net.SecsGem.<.ctor>g__SocketReceiveEventCompleted|84_9(Object sender, SocketAsyncEventArgs e)

from secs4net.

keinen-lab avatar keinen-lab commented on July 20, 2024

@Joan2019 Do you have resolved this problem? I have same problem.
if you resolved this problem, I want to know answer.

from secs4net.

dzhydaniel avatar dzhydaniel commented on July 20, 2024

@zhuwei3359 do you have any progress of this project ?

from secs4net.

zhuwei3359 avatar zhuwei3359 commented on July 20, 2024

from secs4net.

dzhydaniel avatar dzhydaniel commented on July 20, 2024

@keinen-lab @Joan2019 do you have any progress on this project?

from secs4net.

nevernet avatar nevernet commented on July 20, 2024

@Joan2019 @dzhydaniel @keinen-lab i also got System.memory cannot be loaded issue, cause there is no version=4.0.1.1.

i found that under vs2017, the system.memory has been upgraded to 4.5.3 automatically by vs2017.
the problem is why code is still raise the error.

any ideas will be appreciated.
thank you

from secs4net.

mkjeff avatar mkjeff commented on July 20, 2024

.net framework was outdated on v2 roadmap. so, close the issue

from secs4net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.