Search:
Type: Posts; User: zonemikel
Search:
Search took 0.04 seconds.
-
August 24th, 2010, 10:50 PM
I dont know how i can decode to bits, i'm pretty sure i got it to work though. I spent like 2 hours re doing everything using a queue (while watching a movie). There are no more strings, I really...
-
August 24th, 2010, 08:11 PM
Well at least I(you) found the problem. Solving it seems to be another problem in itself.
When i try UTF8 it still only goes up to 7F then goes to FD, just like it used to go to 3F with ascii. I...
-
August 24th, 2010, 04:04 PM
Thanks ! That explains why putty was showing the y with two dots above it, putty is not using the standard ascii it has (i guess) extended characters.
Well i can get back to work now !
Problem...
-
August 24th, 2010, 03:39 PM
I tried UTF8 and ASCII, thats what i'm sending. ASCII should be good ..... no wait you might be right ASCII is only good up to 127 which is 0x7F ... idk why i thought ascii was good to 255. I guess...
-
August 24th, 2010, 02:45 PM
Ok this works fine
byte test = 255;
Console.WriteLine("test: " + Convert.ToString(hexByte, 16).ToUpper());
// outputs "FF"
but when I'm getting the data through the serial port...
-
August 18th, 2010, 02:02 PM
Hello when i run the program it crashes at Application.Run(new Form1()); with this error
how can i know where my error is... it looks like a string error but which one ?
oh...
-
August 17th, 2010, 05:31 PM
for the 255 is the max size of a unsigned byte and the other is just a 0 so it goes back to zero. I need the packet number to go back to zero after it no longer fits in a byte
-
August 17th, 2010, 05:30 PM
lol, i put DW for dont write meaning i dont have to write stuff .. like a "dont write" class so you dont have to write (int)enum.flag or 0x0003 .. but ya its a lousy name.
-
August 17th, 2010, 03:41 PM
Well this is what I did .. i might look into a struct though ..
public class Dw // dont write
{
// basic defines
public const int RX_PacketSZ = 15; // rx...
-
August 17th, 2010, 01:40 PM
Oh wow thanks, I didnt think of that! Sorry to be so picky about this but i'm actually using this for several other things too.
For example I've got my packets coming in as a string, and to index...
-
August 17th, 2010, 11:42 AM
Ok thanks for all the help so far, and thanks for the coding guidelines info. I hate to say it ... but, you guys are getting all into the bit operators and such and thats not really at all my...
-
August 16th, 2010, 08:50 PM
So what should i use in place of enumeration to have a simple '.' sort of system to call on hexadecimal numbers that i need to have set in one place and use in multiple places ?
-
August 16th, 2010, 04:52 PM
I dont use enums or c# much but i thought they were to represent lists of numbers as actual values so your code could look nicer, similar to #define in c
anyway i'm doin this , because i dont...
|
Click Here to Expand Forum to Full Width
|