Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8876615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:15:17+00:00 2026-06-14T19:15:17+00:00

I am working with the Scribbler 2 robot and the Fluke 2 board, and

  • 0

I am working with the Scribbler 2 robot and the Fluke 2 board, and communicating with the Fluke through Myro in Java. The Fluke board is a Bluetooth communication bridge between the Scribbler and the desktop client written in Java. It communicates through an RS232 serial port to the Scribbler.

This may be a dumb question and the above system is complicated, so bear with me if I don’t explain this well.

The background of my question: Java uses signed bytes. The Fluke is (I think) written in C so that uses unsigned bytes. The firmware on the Scribbler is written in Spin which also uses unsigned bytes. Some of the command bytecodes for the Scribbler firmware use values that are greater than 127 so when they get sent from my Java client they are sent as negative numbers. The robot is not responding to these > 127 commands and I am trying to understand why.

The gist of my question: If I send 162 from Java it displays as -94 (seeing this in my console with ‘print’). Will the Spin firmware see this as 162 because a byte is a byte, or will it see it as something else?

I know the Spin code is doing some bit shifting for params to movement commands which can be greater than 255 but it is not doing it for the specific command.

pub Move | x_coord, y_coord
'        0    1     2      3      4      5 
'Format 162 type hXByte lXByte hYByte lYByte
'  type    := indata[1]
  x_coord := (indata[2]<<8 | indata[3])
  y_coord := (indata[4]<<8 | indata[5])
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:15:18+00:00Added an answer on June 14, 2026 at 7:15 pm

    Byte is 8 bits, and nothing more. It is not signed or unsigned by itself. It is arithmetic operations who make difference – simply because there are different arithmetic operations. So Java has only signed integer operations, while C has both. While a byte is sent via RS232, it does not have any operations. So don’t worry, your bytes would not be spoiled by Java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working through C++ Primer Plus and am trying to cin data to a dynamically
I'm an inexperienced JavaScript user working through the book CoffeeScript: Accelerated JavaScript Development ,
Working in Scala-IDE, I have a Java library, in which one of the methods
I'm currently working on a project where I need to edit XLS with Java.
Working with Java Spring, how can I overwrite the default behavior of the property-placeholders
Working through this for fun: http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/ Example calculation of nullable and first uses a
Working through the book Cocoa Programming for Mac OS X (third edition) from Aaron
Working on windows 8 java script application, I added new font as folows: @font-face{
Working on a small game using an HTML5 canvas, and javascript. And it's working
Working with an undisclosed API, I found a function that can set the number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.