Coder Social home page Coder Social logo

Comments (7)

cvschleich avatar cvschleich commented on August 30, 2024

set_ip requires the IP address on the command line. Having said that, it should have printed the help text. But try adding the IP on the command line and see if it does what it's supposed to for you.

from uhppote.

Uzzi avatar Uzzi commented on August 30, 2024

sorry i've write wrong:
php -f sendCommand.php ACTUALIP SN set_ip NEWIP NEWSNETMASK NEWGATEWAY

from uhppote.

cvschleich avatar cvschleich commented on August 30, 2024

Can you copy/paste the output on the screen (do anonymize the IPs and SN before posting)?

from uhppote.

Uzzi avatar Uzzi commented on August 30, 2024

pi@rasperry:\php -f sendCommand.php 192.168.0.0 0000000b set_ip 0.0.0.2 255.255.255.0 0.0.0.1
Padding 40

from uhppote.

carbonsphere avatar carbonsphere commented on August 30, 2024

you seem to be on RPI, try running the command in root. It seems to be hanging in socket_create, if you only see Padding 40. You can also turn on the debug flag at the beginning of the script to see where.

from uhppote.

carbonsphere avatar carbonsphere commented on August 30, 2024

Make sure your board is on the same network. The program will wait for return message from the device. If device doesn't send a return message, then the program will just wait. You can change the debug flag to 1. This will show if your program is stopped at waiting state if you see "Listening for return status". You have to make sure that the command is being received by your device by logging the packets.

from uhppote.

Uzzi avatar Uzzi commented on August 30, 2024

new ip is on other subnet, then it write new ip, but feedback is not recived on old subnet
Thank you

from uhppote.

Related Issues (10)

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.