Giter Site home page Giter Site logo

Comments (3)

ericstoneking avatar ericstoneking commented on June 30, 2024

Did you run the Standalone example successfully? If not, then you should do that first, and if there are issues, maybe I can help you resolve them.

If you have run Standalone successfully, then the issue is with your code, and out of my scope. It's your responsibility to find your way forward. Happy coding!

from 42.

mhmodayman avatar mhmodayman commented on June 30, 2024

Hello @ericstoneking

Let me put the question in other form due to other observations from multiple tests.

I found that no matter what I send, I will get the warning "Imsg limit exceeded" if the length of the transmitted message is more than 5 characters

For example:

By sending the following, I get no warning 
socket.send(b'TIME')
But sending the following will show the "Imsg limit exceeded" warning
socket.send(b'TIME 2020-001-00:00:10.000000000')

Also I am not sure if I want to update the time, as an example, what format should I use from the following:

1- socket.send(b'TIME 2020-001-00:00:10.000000000')
2- socket.send(b'TIME 2020-001-00:00:10.000000000 \n')
3- socket.send(b'TIME 2020-001-00:00:10.000000000 [EOF] \n')
4- socket.send(b'TIME 2020-001-00:00:10.000000000 \n [EOF]')
or to separate every 4 characters by delimiter like
5- socket.send(b'TIME \n2020\n-001\n-00:\n00:1\n0.00\n0000\n000\n')
6- socket.send(b'TIME [EOF]2020[EOF]-001[EOF]-00:[EOF]00:1[EOF]0.00[EOF]0000[EOF]000[EOF]')
7- socket.send(b'TIME [EOF]2020[EOF]-001[EOF]-00:[EOF]00:1[EOF]0.00[EOF]0000[EOF]000[EOF]\n')

Could you help me with this issue, please?
I have been struggling with it since long

from 42.

mhmodayman avatar mhmodayman commented on June 30, 2024

For anyone having the same issue, this solved it:

read_bytes = client_socket.recv(416)
client_socket.send(b'Ack \n')

client_socket.send(b'SC[0].AC.Whl[0].Tcmd = 1 \n[EOF]')
client_socket.recv(4)  # receive ack on sent command

read_bytes = client_socket.recv(416)
client_socket.send(b'Ack \n')

client_socket.send(b'SC[0].AC.Whl[1].Tcmd = 2 \n[EOF]')
client_socket.recv(4)  # receive ack on sent command

from 42.

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.