Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

I am getting the error,When i click on start button it will execute's the execute() method and send data to serial port continuously by using while-loop after executing some time it gave The parameter is incorrect Error as shown below,and also i am getting same errors when i closing the jframe click on (X) close button. This error is printing in console.

And i build jar for this Program, When i execute this jar by command prompt i am getting below error continuously. And the Error is printing in command prompt.

Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch !

In future, please enclose all code snippets in code tags to make them readable, as explained here: https://coderanch.com/how-to/java/UseCodeTags,
and carefully choose an appropriate forum (read https://coderanch.com/how-to/java/CarefullyChooseOneForum). I'll move your post to Java in General, since it seems to be about a serial port comm problem.
 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i solve that probleam.
 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

I am getting the error,When i click on start button it will execute's the execute() method and send data to serial port continuously by using while-loop after executing some time it gave The parameter is incorrect Error as shown below,and also i am getting same errors when i closing the jframe click on (X) close button. This error is printing in console.

And i build jar for this Program, When i execute this jar by command prompt i am getting below error continuously. And the Error is printing in command prompt.

Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i solve (Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect) this error ?
why i am getting this error ?(Because of java code problem or rxtx probleam)
please check my code.
 
Marshal
Posts: 5409
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's hard to say what's going on with your code as you've post over 400 lines of it. I expect the vast majority of it has no relevance to the error you're getting. Try creating a smaller test program that just operates the communication feature without all the GUI stuff which is just adding to the confusion. Read http://www.sscce.org/ for tips on how to do that.

From my limited searching it appears that termios is a Linux utility for TTY I/O control, and I expect that's what gnu.io.* uses under the hood. So that's a good starting point for you to focus your attentions on.

Also, I found that you crossposted the exact same question on StackOverflow. While we don't mind if you crosspost we do ask that you Be Forthright When Cross Posting To Other Sites so our users don't waste time answering a question that's already been answered elsewhere. Just for future reference.
 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in that link there is no solution.
 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

honey prince wrote:Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

I am getting the error,When i click on start button it will execute's the execute() method and send data to serial port continuously by using while-loop after executing some time it gave The parameter is incorrect Error as shown below,and also i am getting same errors when i closing the jframe click on (X) close button. This error is printing in console.

And i build jar for this Program, When i execute this jar by command prompt i am getting below error continuously. And the Error is printing in command prompt.

Error 0x57 at ..\rxtx\src\termios.c(2350): The parameter is incorrect.

 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one having idea about this error
 
Tim Cooke
Marshal
Posts: 5409
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would strongly recommend that you start with a really small test program that just deals with the TTY I/O stuff. Build it up bit by bit, line by line, testing as you go and then you will see exactly what part of the code gives the error.
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And log things for debugging.
At the moment you are flying blind, as I don't see any debugging logging going on so you have an idea of what exactly is being sent.
 
honey prince
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i debug this program the data is sending to serial port correctly and with that error program is not effected but in console i am getting this error and also when i am executing jar through getting the error in command prompt
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic