Comments (7)
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.
sorry i've write wrong:
php -f sendCommand.php ACTUALIP SN set_ip NEWIP NEWSNETMASK NEWGATEWAY
from uhppote.
Can you copy/paste the output on the screen (do anonymize the IPs and SN before posting)?
from uhppote.
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.
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.
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.
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)
- Read but no write HOT 8
- Inquiry: Task List HOT 3
- monitor.php - Address already in use HOT 1
- Invalid HEX conversion when using Uhppote.php outside of command line HOT 1
- How to reboot or restart UHPPOTE controller from command line
- Hex Error HOT 1
- unable to read from socket [10045] HOT 2
- Setting HEX SN and get... PHP Parse error unexpected T_String HOT 1
- serial number of board not part of mac-address HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uhppote.