How to change acceleration based on inf from serial monitor in AccelStepper.h ?

For receiving serial data reliably the techniques in the serial input basics thread are great.

If you want help with your code, you will need to post it. Tell us what the code actually does and how that differs from what you want. Please read the "how to use the forum" stickies to see how to format and post code.