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

  • Home
  • SEARCH
  • 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 8712593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:08:33+00:00 2026-06-13T05:08:33+00:00

I am having an interesting problem using Monodroid to send commands to a device

  • 0

I am having an interesting problem using Monodroid to send commands to a device via Bluetooth.

I am using this Monodroid method:

BluetoothSocket.OutputStream.Write(byte[] buffer, int offset, int count);

I need to send the following 8-byte frame:

  • 0x51
  • 0x26
  • 0x0
  • 0x0
  • 0x0
  • 0x0
  • 0xFFFFFFA3
  • 0x0

The problem is that 0xFFFFFFA3 is a signed byte (-93) so this means I need to use C#.NET’s sbyte rather than byte to create the array to pass to the Write method.

However, I cannot pass an sbyte[] array to the Write method I can only pass a byte[] array. C#.NET does not allow me to put 0xFFFFFFA3 in a byte because it is signed.

What can I do to pass the command through the socket? Thank you.

  • 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-13T05:08:34+00:00Added an answer on June 13, 2026 at 5:08 am

    0xFFFFFFA3 is the size of an Int32, which may be why the compiler is complaining. You should be able to just specify a byte value of 0xA3.

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

Sidebar

Related Questions

I am having an interesting problem with using pinvoke in C# to call _snwprintf.
I'm using AllRoundAutomatation's Pl/sql developer, and now i'm having quite interesting problem, All I
Hi im having an interesting problem. Update: From the comments im getting below this
Interesting problem I'm having with a ListView. It's using a standard ArrayAdapter, with a
So I have an interesting problem I am having issues with the jquery .load()
I'm having an interesting but difficult problem with my JavaScript code. Basically, I'm trying
I'm having an interesting problem...that I can't seem to find the solution for. I'm
Good day, I am having an interesting problem that I cannot understand. I have
I've run into an interesting problem here in using heroku + git + SVN.
I'm having an interesting issue when deploying an app to Tomcat. I'm using the

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.