Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: to close connection to database after i use or not ? Pin
#realJSOP28-Mar-11 9:55
mve#realJSOP28-Mar-11 9:55 
AnswerRe: to close connection to database after i use or not ? Pin
Wendelius28-Mar-11 10:48
mentorWendelius28-Mar-11 10:48 
AnswerRe: to close connection to database after i use or not ? Pin
PIEBALDconsult28-Mar-11 14:25
mvePIEBALDconsult28-Mar-11 14:25 
QuestionHow to communicate to a device via serial port Pin
_awatts28-Mar-11 6:21
_awatts28-Mar-11 6:21 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 9:09
_awatts28-Mar-11 9:09 
GeneralRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 9:21
sitebuilderLuc Pattyn28-Mar-11 9:21 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 9:57
_awatts28-Mar-11 9:57 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 10:15
sitebuilderLuc Pattyn28-Mar-11 10:15 
_awatts wrote:
how do I calculate DSUM and HSUM?


Haha, excellent question. There are hundreds of checksum definitions, some of them are standardized by ISO or by CCITT. And I could come up with a few that probably haven't been used yet... Your best hope would be it is described in the documentation. Failing that, you would have to ask the other party, or experiment by collecting a few short messages with correct checksum, then running them against all kinds of known checksum definitions until you find a match for each of the test messages.

Warning: yes a word seems to be two bytes in your context, however you also need to know which byte comes first: the high-value or the low-value (known as endianness: big-endian versus little-endian). Just looking at the start of a correct message (a SYNC word) should tell you.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 10:45
_awatts28-Mar-11 10:45 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 11:00
sitebuilderLuc Pattyn28-Mar-11 11:00 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 11:38
_awatts28-Mar-11 11:38 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 11:55
sitebuilderLuc Pattyn28-Mar-11 11:55 
AnswerRe: How to communicate to a device via serial port Pin
Pritesh Aryan28-Mar-11 20:55
Pritesh Aryan28-Mar-11 20:55 
AnswerRe: How to communicate to a device via serial port Pin
Ganesh Kumar Kaki13-Apr-11 2:35
Ganesh Kumar Kaki13-Apr-11 2:35 
QuestionDebugging a C# GUI app started via commandline Pin
wizardzz28-Mar-11 5:48
wizardzz28-Mar-11 5:48 
AnswerRe: Debugging a C# GUI app started via commandline Pin
Ian Shlasko28-Mar-11 5:58
Ian Shlasko28-Mar-11 5:58 
GeneralRe: Debugging a C# GUI app started via commandline Pin
wizardzz28-Mar-11 6:15
wizardzz28-Mar-11 6:15 
GeneralRe: Debugging a C# GUI app started via commandline Pin
Ian Shlasko28-Mar-11 6:45
Ian Shlasko28-Mar-11 6:45 
QuestionRead XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 5:10
professionalKevin Marois28-Mar-11 5:10 
AnswerRe: Read XML Into Class Hierarchy Pin
Ian Shlasko28-Mar-11 5:22
Ian Shlasko28-Mar-11 5:22 
GeneralRe: Read XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 5:33
professionalKevin Marois28-Mar-11 5:33 
GeneralRe: Read XML Into Class Hierarchy Pin
Ian Shlasko28-Mar-11 5:56
Ian Shlasko28-Mar-11 5:56 
GeneralRe: Read XML Into Class Hierarchy Pin
Not Active28-Mar-11 5:59
mentorNot Active28-Mar-11 5:59 
GeneralRe: Read XML Into Class Hierarchy Pin
SledgeHammer0128-Mar-11 6:10
SledgeHammer0128-Mar-11 6:10 
GeneralRe: Read XML Into Class Hierarchy Pin
Not Active28-Mar-11 6:21
mentorNot Active28-Mar-11 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.